Part Number Hot Search : 
EL223 TA7807S GOTECH 205206B DM9374N 76MSB07S HZS3C1 440AH069
Product Description
Full Text Search
 

To Download UM10204 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  UM10204 i 2 c-bus specificatio n and user manual rev. 4 ? 13 february 2012 user manual document information info content keywords i2c, i2c-bus, standard-mode, fast-mode, fast-mode plus, fm+, ultra fast-mode, ufm, high speed, hs, inter-ic, sda, scl, usda, uscl abstract philips semiconductors (now nxp semiconductors) developed a simple bidirectional 2-wire bus for efficient inter-ic control. this bus is called the inter-ic or i 2 c-bus. only two bus lines are required: a serial data line (sda) and a serial clock line (scl). serial, 8-bit oriented, bidirectional data transfers can be made at up to 100 kbit/s in the standard-mode, up to 400 kbit/s in the fast-mode, up to 1 mbit/s in the fast-mode plus (fm+), or up to 3.4 mbit/s in the high-spe ed mode. the ultra fast-mode is a uni-directional mode with data transfers of up to 5 mbit/s.
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 2 of 64 contact information for more information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com nxp semiconductors UM10204 i 2 c-bus specification and user manual revision history rev date description v.4 20120213 update user manual. modifications: ? the format of this document has been redesigned to comply with the new identity guidelines of nxp semiconductors. ? legal texts have been adapted to the new company name where appropriate. ? ta b l e ? document information ? : added keywords ?ultra fast-mode?, ?ufm?, ?usda? and ?uscl? ? new section 3.1 created and (old) sections 3.1 to 3.17 are moved under this new section and renumbered to section 3.1.1 to section 3.1.17 . ? section 3.1.12 ? reserved addresses ? , added descriptive line below title of ta b l e 3 ? added (new) table 4 ? assigned manufacturer ids ? ? added (new) section 3.2 ? ultra fast-mode i 2 c-bus protocol ? ? added (new) section 4.6 ? display data channel (ddc) ? ? added (new) section 5.4 ? ultra fast-mode ? ? table 9 ? characteristics of the sda and scl i/o stages ? : ? symbol v hys : deleted condition ?v dd > 2 v?; deleted condition ?v dd < 2 v? and its values ? symbol v ol3 replaced with symbol v ol2 ; added (new) table note [3] ? parameter description for t of corrected from ?output fall time from v ihmax to v ilmax ? to ?output time from v ihmin to v ilmax ?. ? t of min values for fast-mode and fast-mode plus are changed to ?20 ns (v dd /5.5v)? ? table 10 ? characteristics of the sda and scl bus lines for standard, fast, and fast-mode plus i 2 c-bus devices [1] ? : ? t r min value for fast-mode changed from ?20 + 0.1c b ns? to ?20 ns? ? t f min values for fast-mode and fast-mode plus are changed to ?20 ns (v dd /5.5v)? ? ta b l e 11 ? characteristics of the sdah, sclh, sda and scl i/o stages for hs-mode i 2 c-bus devices ? : second condition for v ol changed from ?v dd < 2 v? to ?v dd 2v? ? added (new) section 6.3 ? ultra fast-mode devices ? . ? section 7.1 ? pull-up resistor sizing ? , third paragraph changed from ?... is a function of the rise time minimum (t r ) ...? to ?... is a function of the rise time maximum (t r ) ...? v.3 20070619 many of today?s applications require lon ger buses and/or faster speeds. fast-mode plus was introduced to meet this need by increasing drive strength by as much as 10 and increasing the data rate to 1 mbit/s while maintaining downward comp atibility to fast-mode and standard-mode speeds and software commands. v2.1 2000 version 2.1 of the i 2 c-bus specification v2.0 1998 the i 2 c-bus has become a de facto world standard that is now implemented in over 1000 different ics and licensed to more than 50 companies. many of today?s applications, however, require higher bus speeds and lower supply voltages. this updated version of the i 2 c-bus specification meets those requirements. v1.0 1992 version 1.0 of the i 2 c-bus specification original 1982 first release
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 3 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 1. introduction the i 2 c-bus is a de facto world standard that is now implemented in over 1000 different ics manufactured by more than 50 companies. additionally, the versatile i 2 c-bus is used in various control architectures such as system management bus (smbus), power management bus (pmbus), intelligent platform management interf ace (ipmi), display data channel (ddc) and advanced tele com computing architecture (atca). this document assists device and system designers to understand how the i 2 c-bus works and implement a working application. various operating modes are described. it contains a comprehensive introduction to the i 2 c-bus data transfer, handshaking and bus arbitration schemes. detailed sections cover the timing and electrical specifications for the i 2 c-bus in each of its operating modes. designers of i 2 c-compatible chips should use this document as a reference and ensure that new devices meet all limit s specified in this documen t. designers of systems that include i 2 c devices should review this document an d also refer to individual component data sheets. 2. i 2 c-bus features in consumer electronics, telecommunications and industrial electronics, there are often many similarities between seemingly unre lated designs. for example, nearly every system includes: ? some intelligent control, usually a single-chip microcontroller ? general-purpose circuits like lcd and le d drivers, remote i/o ports, ram, eeprom, real-time clocks or a/d and d/ a converters ? application-oriented circuits such as digi tal tuning and signal processing circuits for radio and video systems, temperature sensors, and smart cards to exploit these similarities to the benefit of both systems designers and equipment manufacturers, as well as to maximize hardware efficiency and circuit simplicity, philips semiconductors (now nxp semiconductors) dev eloped a simple bidirectional 2-wire bus for efficient inter-ic control. th is bus is called the inter ic or i 2 c-bus. all i 2 c-bus compatible devices incorporat e an on-chip interface which allows them to communicate directly with each other via the i 2 c-bus. this design concept so lves the many interfacing problems encountered when designing digital control circuits. here are some of the features of the i 2 c-bus: ? only two bus lines are required; a serial data line (sda) and a serial clock line (scl). ? each device connected to the bus is software addressable by a unique address and simple master/slave relati onships exist at all times; masters can operate as master-transmitters or as master-receivers. ? it is a true multi-master bus including collisio n detection and arbitrat ion to prevent data corruption if two or more masters simultaneously initiate data transfer. ? serial, 8-bit oriented, bidirectional data transfers can be made at up to 100 kbit/s in the standard-mode, up to 400 kbit/s in the fast-mode, up to 1 mbit/s in fast-mode plus, or up to 3.4 mbit/s in the high-speed mode.
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 4 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual ? serial, 8-bit oriented, unidirectional data transfers up to 5 mbit/s in ultra fast-mode ? on-chip filtering rejects spikes on the bus data line to preserve data integrity. ? the number of ics that can be connected to the same bus is limited only by a maximum bus capacitance. more capacitance may be allowed under some conditions. refer to section 7.2 . figure 1 shows an example of i 2 c-bus applications. 2.1 designer benefits i 2 c-bus compatible ics allow a system desig n to progress rapidly directly from a functional block diagram to a prototype. mo reover, since they ?clip? directly onto the i 2 c-bus without any additional external interf acing, they allow a prototype system to be modified or upgraded simply by ?clipping? or ?unclipping? ics to or from the bus. here are some of the features of i 2 c-bus compatible ics that are particularly attractive to designers: ? functional blocks on the block diagram correspond with the actual ics; designs proceed rapidly from block diagram to final schematic. ? no need to design bus interfaces because the i 2 c-bus interface is already integrated on-chip. fig 1. example of i 2 c-bus applications i 2 c a/d or d/a converters i 2 c general purpose i/o expanders i 2 c led controllers v dd4 i 2 c repeaters/ hubs/extenders i 2 c dip switches v dd5 i 2 c slave v dd0 v dd1 pca9541 i 2 c master selector/ demux i 2 c multiplexers and switches v dd2 i 2 c port via hw or bit banging i 2 c bus controllers mcus 8 mcus i 2 c serial eeproms lcd drivers (with i 2 c) i 2 c real time clock/ calendars v dd3 i 2 c temperature sensors bridges (with i 2 c) spi uart usb 002aac858
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 5 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual ? integrated addressing and data-transfer protocol allow systems to be completely software-defined. ? the same ic types can often be used in many different applications. ? design-time reduces as designers quickly be come familiar with the frequently used functional blocks represented by i 2 c-bus compatible ics. ? ics can be added to or removed from a system without affecting any other circuits on the bus. ? fault diagnosis and debugging are simple; malfunctions can be immediately traced. ? software development time can be reduced by assembling a library of reusable software modules. in addition to these advantages, the cmos ics in the i 2 c-bus compatible range offer designers special features wh ich are particularly attracti ve for portable equipment and battery-backed systems. they all have: ? extremely low current consumption ? high noise immunity ? wide supply voltage range ? wide operating temperature range. 2.2 manufacturer benefits i 2 c-bus compatible ics not only assist designer s, they also give a wide range of benefits to equipment manufacturers because: ? the simple 2-wire serial i 2 c-bus minimizes interconnections so ics have fewer pins and there are not so many pcb tracks; result ? smaller and less expensive pcbs. ? the completely integrated i 2 c-bus protocol eliminates the need for address decoders and other ?glue logic?. ? the multi-master ca pability of the i 2 c-bus allows rapid test ing and alignment of end-user equipment via external connections to an assembly line. ? the availability of i 2 c-bus compatible ics in variou s leadless packages reduces space requirements even more. these are just some of the benefits. in addition, i 2 c-bus compatible ics increase system design flexibility by allowing simple construction of equipm ent variants and easy upgrading to keep designs up-to-date. in this way, an entire family of equipment can be developed around a basic model. upgrades for new equipment, or enhanced-feature models (that is, extended memory, remote control, etc.) can then be produced simply by clipping the appropriate ics onto the bus. if a larger rom is needed, it is simply a matter of selecting a microcontroller with a larger rom from our comprehensive range. as new ics supersede older ones, it is easy to add ne w features to equipment or to increase its performance by simply unclipping the outdated ic from the bus and clipping on its successor.
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 6 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 2.3 ic designer benefits designers of microcontrollers are frequently under pressure to conserve output pins. the i 2 c protocol allows connection of a wide va riety of peripherals without the need for separate addressing or chip enable signals. additionally, a microcontroller that includes an i 2 c interface is more successful in the market place due to the wide variety of existing peripheral devices available. 3. the i 2 c-bus protocol 3.1 standard-mode, fast-m ode and fast-mode plus i 2 c-bus protocols two wires, serial data (sda) and serial clock (scl), carry information between the devices connected to the bus. each device is recognized by a unique address (whether it is a microcontroller, lcd driver, memory or keyboard interface) and can operate as either a transmitter or receiver, depending on the function of the device. an lcd driver may be only a receiver, whereas a memory can both receive and transmit data. in addition to transmitters and receivers, devices can also be considered as masters or slaves when performing data transfers (see table 1 ). a master is the device which initiates a data transfer on the bus and generates the clock signa ls to permit that transfer. at that time, any device addressed is considered a slave. the i 2 c-bus is a multi-master bus. this means that more than one device capable of controlling the bus can be connect ed to it. as masters are us ually microcontrollers, let us consider the case of a data transfer between two microcontrollers connected to the i 2 c-bus (see figure 2 ). table 1. definition of i 2 c-bus terminology term description transmitter the device which sends data to the bus receiver the device which receives data from the bus master the device which initiates a transfer, generates clock signals and terminates a transfer slave the device addressed by a master multi-master more than one master can attemp t to control the bus at the same time without corrupting the message arbitration procedure to ensure that, if more than one master simultaneously tries to control the bus, only one is allowed to do so and the winning message is not corrupted synchronization procedure to synchronize the clock signals of two or more devices
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 7 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual this example highlights the master-slave and receiver-transmitter relationships found on the i 2 c-bus. note that these relationships ar e not permanent, but only depend on the direction of data transfer at that time. th e transfer of data would proceed as follows: 1. suppose microcontroller a wants to send information to microcontroller b: ? microcontroller a (master), addresses microcontroller b (slave) ? microcontroller a (master-transmitter), sends data to microcontroller b (slave-receiver) ? microcontroller a terminates the transfer. 2. if microcontroller a wants to receive information from microcontroller b: ? microcontroller a (master) addresses microcontroller b (slave) ? microcontroller a (master-receiver) receives data from microcontroller b (slave-transmitter) ? microcontroller a terminates the transfer. even in this case, the master (microcontroller a) generates the timing and terminates the transfer. the possibility of connecting more than one microcontroller to the i 2 c-bus means that more than one master could try to initiate a data transfer at the same time. to avoid the chaos that might ensue from such an event, an arbitration procedure has been developed. this procedure relies on the wired-and connection of all i 2 c interfaces to the i 2 c-bus. if two or more masters try to put information on to the bus, the first to produce a ?one? when the other produces a ?zero? loses the arbitration. the clock signals during arbitration are a synchronized combination of the clocks gene rated by the masters using the wired-and connection to the scl line (for more deta iled information concerning arbitration see section 3.1.8 ). generation of clock signals on the i 2 c-bus is always the responsibility of master devices; each master generates its own clock signals wh en transferring data on the bus. bus clock signals from a master can only be altered when they are stretched by a slow slave device holding down the clock line or by another master when arbitration occurs. ta b l e 2 summarizes the use of mandatory and optional portions of the i 2 c-bus specification and which system configurations use them. fig 2. example of an i 2 c-bus configuration using two microcontrollers mbc645 sda scl micro - controller a static ram or eeprom lcd driver gate array adc micro - controller b
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 8 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual [1] also refers to a master acting as a slave. [2] clock stretching is a feature of some slaves. if no sl aves in a system can stretch the clock (hold scl low), the master need not be designed to handle this procedure. [3] ?bit banging? (software emulation) multi-mast er systems should consider a start byte. see section 3.1.15 . 3.1.1 sda and scl signals both sda and scl are bidirectional lines, co nnected to a positive supply voltage via a current-source or pu ll-up resistor (see figure 3 ). when the bus is free, both lines are high. the output stages of devices connected to the bus must have an open-drain or open-collector to perform the wired-and function. data on the i 2 c-bus can be transferred at rates of up to 100 kbit/s in the standard-mode, up to 400 kbit/s in the fast-mode, up to 1 mbit/s in fast-mode plus, or up to 3.4 mbit/s in the high-speed mode. the bus capacitance limits the number of interfaces connected to the bus. for a single master application, the master?s scl output can be a push-pull driver design if there are no devices on the bus which would stretch the clock. table 2. applicability of i 2 c-bus protocol features m = mandatory; o = optional; n/a = not applicable. feature configuration single master multi-master slave [1] start condition m m m stop condition m m m acknowledge m m m synchronization n/a m n/a arbitration n/a m n/a clock stretching o [2] o [2] o 7-bit slave address m m m 10-bit slave address o o o general call address o o o software reset o o o start byte n/a o [3] n/a device id n/a n/a o v dd2 , v dd3 are device-dependent (for example, 12 v). fig 3. devices with various supply voltages sharing the same bus cmos cmos nmos bipolar 002aac860 v dd1 = 5 v 10 % r p r p sda scl v dd2 v dd3
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 9 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 3.1.2 sda and scl logic levels due to the variety of different technology devices (cmos, nmos, bipolar) that can be connected to the i 2 c-bus, the levels of the logical ?0? (low) and ?1? (high) are not fixed and depend on the associated level of v dd . input reference levels are set as 30 % and 70 % of v dd ; v il is 0.3v dd and v ih is 0.7v dd . see figure 38 , timing diagram. some legacy device input levels were fixed at v il = 1.5 v and v ih = 3.0 v, but all new devices require this 30 %/70 % specification. see section 6 for electrical specifications. 3.1.3 data validity the data on the sda line must be stable during the high period of the clock. the high or low state of the data line can only chang e when the clock signal on the scl line is low (see figure 4 ). one clock pulse is generated for each data bit transferred. 3.1.4 start and stop conditions all transactions begin with a start (s) an d are terminated by a stop (p) (see figure 5 ). a high to low transition on the sda line while scl is high defines a start condition. a low to high transition on the sda line wh ile scl is high defines a stop condition. start and stop conditions are always genera ted by the master. the bus is considered to be busy after the start condition. the bu s is considered to be free again a certain time after the stop condition. this bus free situation is specified in section 6 . the bus stays busy if a repeated start (sr) is generated instead of a stop condition. in this respect, the start (s) and repeated start (sr) conditions are functionally identical. for the remainder of this document, therefore, the s symbol is used as a generic term to represent both the start and repeated start conditions, unless sr is particularly relevant. fig 4. bit transfer on the i 2 c-bus mba607 data line stable; data valid change of data allowed sda scl fig 5. start and stop conditions mba608 sda scl p stop condition s start condition
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 10 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual detection of start and stop conditions by devi ces connected to the bus is easy if they incorporate the necessary interfacing hardwar e. however, microcontrollers with no such interface have to sample the sda line at least twice per clock period to sense the transition. 3.1.5 byte format every byte put on the sda line must be eight bits long. the number of bytes that can be transmitted per transfer is unrestricted. each byte must be followed by an acknowledge bit. data is transferred with the most significant bit (msb) first (see figure 6 ). if a slave cannot receive or transmit another complete by te of data until it has performed some other function, for example servicing an internal interrupt, it can hold the clock line scl low to force the master into a wait state. data transfer then continues when the slave is ready for another byte of data and releases clock line scl. 3.1.6 acknowledge (ack) and not acknowledge (nack) the acknowledge takes place after every byte. the acknowledge bit allows the receiver to signal the transmitter that the byte was successfully received and another byte may be sent. the master generates all clock pulses, including the acknowledge ninth clock pulse. the acknowledge signal is defined as follo ws: the transmitter releases the sda line during the acknowledge clock pulse so the receiver can pull the sda line low and it remains stable low during the high period of this clock pulse (see figure 4 ). set-up and hold times (specified in section 6 ) must also be taken into account. when sda remains high during this ninth clock pulse, this is defined as the not acknowledge signal. the master can then gene rate either a stop condition to abort the transfer, or a repeated start condition to start a new transfer. there are five conditions that lead to the generation of a nack: 1. no receiver is present on the bus with the transmitted address so there is no device to respond with an acknowledge. 2. the receiver is unable to receive or trans mit because it is performing some real-time function and is not ready to st art communication with the master. 3. during the transfer, the receiver gets data or commands that it does not understand. 4. during the transfer, the receiver cannot receive any more data bytes. 5. a master-receiver must signal the end of the transfer to the slave transmitter. fig 6. data transfer on the i 2 c-bus s or sr sr or p sda scl msb 1 2 7 8 9 1 2 3 to 8 9 ack ack 002aac861 start or repeated start condition stop or repeated start condition acknowledgement signal from slave byte complete, interrupt within slave clock line held low while interrupts are serviced p sr acknowledgement signal from receiver
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 11 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 3.1.7 clock synchronization two masters can begin transmitting on an idle bus at the same time and there must be a method for deciding which takes control of the bus and complete its tr ansmission. this is done by clock synchronization and arbitr ation. in single master systems, clock synchronization and arbitration are not needed. clock synchronization is performed using the wired-and connection of i 2 c interfaces to the scl line. this means that a high to low transition on the scl line causes the masters concerned to start counting off their low period and, once a master clock has gone low, it holds the scl line in that st ate until the clock high state is reached (see figure 7 ). however, if another clock is still within its low period, the low to high transition of this clock may not change the st ate of the scl line. the scl line is therefore held low by the master with the longest low period. masters with shorter low periods enter a high wait-state during this time. when all masters concerned have counted off their low period, the clock line is released and goes high. there is then no difference between the master clocks and the state of the scl line, and all the masters start counting their high periods. the first master to complete its high period pulls the scl line low again. in this way, a synchronized scl clock is gene rated with its low period determined by the master with the longest clock low period, and its high period determined by the one with the shortest clock high period. 3.1.8 arbitration arbitration, like synchronization, refers to a portion of the protocol required only if more than one master is used in the system. sl aves are not involved in the arbitration procedure. a master may start a transfer only if the bus is free. two masters may generate a start condition within the minimum hold time (t hd;sta ) of the start condition which results in a valid start conditio n on the bus. arbitration is then required to determine whic h master will complete its transmission. arbitration proceeds bit by bit. during every bi t, while scl is high, each master checks to see if the sda level matches what it has sent. this process may take many bits. two masters can actually complete an entire transaction without error, as long as the fig 7. clock synchronization during the arbitration procedure clk 1 clk 2 scl counter reset wait state start counting high period mbc632
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 12 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual transmissions are identical. the first time a master tries to send a high, but detects that the sda level is low, the mast er knows that it has lost the arbitration and turns off its sda output driver. the other master goes on to complete its transaction. no information is lost during the arbitration process. a master that loses the arbitration can generate clock pulses until the end of the byte in which it loses the arbitration and must restart its transacti on when the bus is idle. if a master also incorporates a slave function and it loses arbitration during the addressing stage, it is possible that the winning master is trying to address it. the losing master must therefore switch over immediately to its slave mode. figure 8 shows the arbitration procedure for two masters. more may be involved depending on how many masters are connected to the bus. the moment there is a difference between the internal data level of the master generating data1 and the actual level on the sda line, the data1 output is sw itched off. this does not affect the data transfer initiated by the winning master. since control of the i 2 c-bus is decided solely on the address and data sent by competing masters, there is no central master, nor any order of priority on the bus. there is an undefined conditio n if the arbitration procedur e is still in progress at the moment when one master sends a repeated start or a stop condition while the other master is still sending data. in other words, the following combinat ions result in an undefined condition: ? master 1 sends a repeated start cond ition and master 2 sends a data bit. ? master 1 sends a stop condition and master 2 sends a data bit. ? master 1 sends a repeated start condition and master 2 sends a stop condition. fig 8. arbitration procedure of two masters msc609 data 1 data 2 sda scl s master 1 loses arbitration data 1 sda
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 13 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 3.1.9 clock stretching clock stretching pauses a transaction by holding the scl line low. the transaction cannot continue until the line is released high ag ain. clock stretching is optional and in fact, most slave devices do not include an scl driver so they are unable to stretch the clock. on the byte level, a device may be able to re ceive bytes of data at a fast rate, but needs more time to store a received byte or prepar e another byte to be transmitted. slaves can then hold the scl line low after reception and acknowledgment of a byte to force the master into a wait state until the slave is r eady for the next byte transfer in a type of handshake procedure (see figure 7 ). on the bit level, a device such as a microcontroller with or without limited hardware for the i 2 c-bus, can slow down the bus clock by extend ing each clock low period. the speed of any master is adapted to the internal operating rate of this device. in hs-mode, this handshake feature c an only be used on byte level (see section 5.3.2 ). 3.1.10 the slave address and r/w bit data transfers follow the format shown in figure 9 . after the start condition (s), a slave address is sent. this address is seven bits long followed by an eighth bit which is a data direction bit (r/w ) ? a ?zero? indicates a transmission (write), a ?one? indicates a request for data (read) (refer to figure 10 ). a data transfer is always terminated by a stop condition (p) generated by the mast er. however, if a master still wishes to communicate on the bus, it can generate a repeated start condition (sr) and address another slave without first generating a st op condition. various combinations of read/write formats are then possible within such a transfer. fig 9. a complete data transfer s 1 - 7 8 9 1 - 7 8 9 1 - 7 8 9 p stop condition start condition data ack data ack address ack r/w sda scl mbc604 fig 10. the first byte af ter the start procedure mbc608 r/w lsb msb slave address
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 14 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual possible data transfer formats are: ? master-transmitter transmits to slave-receiv er. the transfer direction is not changed (see figure 11 ). the slave receiver acknowledges each byte. ? master reads slave immediat ely after first byte (see figure 12 ). at the moment of the first acknowledge, the master-transmi tter becomes a master-receiver and the slave-receiver becomes a slave-transmitter. this first a cknowledge is still generated by the slave. the master generates subs equent acknowledges. the stop condition is generated by the master, which sends a not-acknowledge (a ) just before the stop condition. ? combined format (see figure 13 ). during a change of direction within a transfer, the start condition and the slave address are both repeated, but with the r/w bit reversed. if a master-receiver sends a repeated start condition, it sends a not-acknowledge (a ) just before the repeated start condition. notes: 1. combined formats can be used, for example, to control a serial memory. the internal memory location must be written during the first data byte. after the start condition and slave address is repeated, data can be transferred. 2. all decisions on auto-increment or decr ement of previously accessed memory locations, etc., are taken by the designer of the device. 3. each byte is followed by an acknowledgment bit as indicated by the a or a blocks in the sequence. 4. i 2 c-bus compatible devices mu st reset their bus logic on receipt of a start or repeated start condition such that they all anticipate the sending of a slave address, even if these start conditions ar e not positioned according to the proper format. 5. a start condition immediately followed by a stop condition (void message) is an illegal format. many devices however are designed to operate properly under this condition. 6. each device connected to the bus is addressable by a unique address. normally a simple master/slave relationsh ip exists, but it is possible to have multiple identical slaves that can receive and respond simultaneously, for example in a group broadcast. this technique works best wh en using bus switching devices like the pca9546a where all four channels are on and identical devices are configured at the same time, understanding th at it is impossible to de termine that each slave acknowledges, and then turn on one channel at a time to read back each individual device?s configuration to confirm the programming. refer to individual component data sheets.
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 15 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 3.1.11 10-bit addressing 10-bit addressing expands the number of possible addresses. devices with 7-bit and 10-bit addresses can be connected to the same i 2 c-bus, and both 7-bit and 10-bit addressing can be used in all bus speed modes. currently, 10-bit addressing is not being widely used. the 10-bit slave address is formed from the first two bytes following a start condition (s) or a repeated start condition (sr). the first seven bits of the first byte are the combination 1111 0xx of which the last two bits (xx) are the two most-significant bits (msb) of the 10-bit address; the eighth bit of the first byte is the r/w bit that determines the direction of the message. although there are eight possible combinatio ns of the reserved address bits 1111 xxx, only the four combinations 1111 0xx are used for 10-bit addressing. the remaining four combinations 1111 1xx are reserved for future i 2 c-bus enhancements. fig 11. a master-transmitter addressing a slave receiver with a 7-bit address (the transfer directio n is not changed) fig 12. a master reads a slave immediately after the first byte fig 13. combined format mbc605 a/a a '0' (write) data transferred (n bytes + acknowledge) a = acknowledge (sda low) a = not acknowledge (sda high) s = start condition p = stop condition r/w from master to slave from slave to master data data a slave address s p mbc606 a (read) data transferred (n bytes + acknowledge) r/w a 1 p data data slave address sa mbc607 dataa r/w read or write a/a dataa r/w (n bytes + ack.) * direction of transfer may change at this point. read or write (n bytes + ack.) * sr = repeated start condition a/a * not shaded because transfer direction of data and acknowledge bits depends on r/w bits. slave address ssrp slave address
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 16 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual all combinations of read/write formats prev iously described for 7-bit addressing are possible with 10-bit addressing. two are detailed here: ? master-transmitter transmits to slave-receiver with a 10-bit slave address. the transfer direction is not changed (see figure 14 ). when a 10-bit address follows a start condition, each slave compares the first seven bits of the first byte of the slave address (1111 0xx) with its own address and tests if the eighth bit (r/w direction bit) is 0. it is possible that more than one device finds a match and generate an acknowledge (a1). all slaves that f ound a match compare the eight bits of the second byte of the slav e address (xxxx xxxx) with thei r own addresse s, but only one slave finds a match and generates an acknowledge (a2). the matching slave remains addressed by the master until it re ceives a stop condition (p) or a repeated start condition (sr) followed by a different slave address. ? master-receiver reads slave-transmit ter with a 10-bit slave address. the transfer direction is changed after the second r/w bit ( figure 15 ). up to and including acknowledge bit a2, the procedure is the same as that described for a master-transmitter addressing a slave-rece iver. after the repeated start condition (sr), a matching slave remembers that it was addressed before. this slave then checks if the first seven bits of the first by te of the slave address following sr are the same as they were after the start condition (s), and tests if the eighth (r/w ) bit is 1. if there is a match, the slave considers th at it has been addressed as a transmitter and generates acknowledge a3. the slav e-transmitter remains addressed until it receives a stop condition (p) or until it receives another repeated start condition (sr) followed by a different slave address. after a repeated start condition (sr), all the other slave devices will also compare the first seven bits of the first byte of the slave address (1111 0xx) with their own addresses and test the eighth (r/w ) bit. however, none of them will be addressed because r/w = 1 (for 10-bit devices), or the 1111 0xx slave address (for 7-bit devices) does not match. slave devices with 10-bit addressing react to a ?general call? in the same way as slave devices with 7-bit addressing. hardware master s can transmit their 10-bit address after a ?general call?. in this case, th e ?general call? address byte is followed by two successive bytes containing the 10-bit address of the ma ster-transmitter. the format is as shown in figure 15 where the first data byte contains the eight least-significant bits of the master address. fig 14. a master-transmitter addresses a slave-receiver with a 10-bit address mbc613 r/w a1 (write) a2 a a/a 1 1 1 1 0 x x 0 slave address 1st 7 bits s data p data slave address 2nd byte fig 15. a master-receiver addresses a slave-transmitter with a 10-bit address mbc614 r/w a1 (write) a3 data data a2 r/w (read) 1 1 1 1 0 x x 0 1 1 1 1 0 x x 1 a ap sr slave address 1st 7 bits slave address 2nd byte slave address 1st 7 bits s
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 17 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual the start byte 0000 0001 (01h) can precede the 10-bit addressing in the same way as for 7-bit addressing (see section 3.1.15 ). 3.1.12 reserved addresses two groups of eight addresses (0000 xxx and 1111 xxx) are reserved for the purposes shown in ta b l e 3 . [1] the general call address is used for seve ral functions including software reset. [2] no device is allowed to acknowledge at the reception of the start byte. [3] the cbus address has been reserved to enable the inter-mixing of cbus compatible and i 2 c-bus compatible devices in the same system. i 2 c-bus compatible devices are not allowed to respond on reception of this address. [4] the address reserved for a different bus format is included to enable i 2 c and other protocols to be mixed. only i 2 c-bus compatible devices that can work with su ch formats and protocols are allowed to respond to this address. assignment of addresses within a local system is up to the system architect who must take into account the devices being used on the bus and any future interaction with other conventional i 2 c-buses. for example, a device with seven user-assignable address pins allows all 128 addresses to be assigned. if it is known that the reserved address is never going to be used for its intended purpose, a reserved address can be used for a slave address. the i 2 c-bus committee coordina tes allocation of i 2 c addresses. further information can be obtained from the nxp web site www.nxp.com/i2c . 3.1.13 general call address the general call address is for addressing every device connected to the i 2 c-bus at the same time. however, if a device does not need any of the data supplied within the general call structure, it can ignore this addre ss by not issuing an acknowledgment. if a device does require data from a general call address, it acknowledges this address and behave as a slave-receiver. the master does not ac tually know how many devices acknowledged if one or more devices respond. the second and following bytes are acknowledged by every slave-receiver capable of handling this data. a slave who cannot process one of these bytes must ignore it by not-acknowledging. again, if one or more slaves acknowledge, the not-ackno wledge will not be seen by the master. the meaning of the general call address is always specified in the second byte (see figure 16 ). table 3. reserved addresses x = don?t care; 1 = high; 0 = low. slave address r/w bit description 0000 000 0 general call address [1] 0000 000 1 start byte [2] 0000 001 x cbus address [3] 0000 010 x reserved for different bus format [4] 0000 011 x reserved for future purposes 0000 1xx x hs-mode master code 1111 1xx x reserved for future purposes 1111 0xx x 10-bit slave addressing
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 18 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual there are two cases to consider: ? when the least significant bit b is a ?zero?. ? when the least significant bit b is a ?one?. when bit b is a ?zero?, the second byte has the following definition: ? 0000 0110 (06h): reset and write programmable part of slave address by hardware. on receiving this 2-byte sequence, all devices designed to respond to the general call address reset and take in the programmable part of their address. precautions must be taken to ensure that a device is no t pulling down the sda or scl line after applying the supply voltage, si nce these low levels would block the bus. ? 0000 0100 (04h): write programmable part of slave address by hardware. behaves as above, but the device does not reset. ? 0000 0000 (00h): this code is not allowed to be used as the second byte. sequences of programming procedure are published in the appropriate device data sheets. the remaining codes have not been fixed and devices must ignore them. when bit b is a ?one?, the 2- byte sequence is a ?hardware general call?. th is means that the sequence is transmitted by a hardware ma ster device, such as a keyboard scanner, which can be programmed to transmit a desi red slave address. since a hardware master does not know in advance to which device th e message has to be transferred, it can only generate this hardware general call and its own address ? identifying itself to the system (see figure 17 ). the seven bits remaining in the second byte contain the address of the hardware master. this address is recognized by an intelligen t device (for exampl e, a microcontroller) connected to the bus which then accepts the in formation from the hardware master. if the hardware master can also act as a slave, the slave address is identical to the master address. fig 16. general call address format fig 17. data transfer from a hardware master-transmitter mbc623 lsb second byte 0 0 0 0 0 0 0 0 a x x x x x x x ba first byte (general call address) mbc624 general call address (b) a a second byte a a (n bytes + ack.) s 00000000 master address 1 p data data
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 19 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual in some systems, an alternative could be that the hardware master tran smitter is set in the slave-receiver mode after the system reset. in this way, a system configuring master can tell the hardware master-transmitter (which is now in slave-receiver mode) to which address data must be sent (see figure 18 ). after this programming procedure, the hardware master remains in the master-transmitter mode. 3.1.14 software reset following a general call, (0000 0000), sending 0000 0110 (06h) as the second byte causes a software reset. this feature is op tional and not all devices respond to this command. on receiving this 2-byte sequence, all devices designed to respond to the general call address reset and take in the programmable part of their address. precautions must be taken to ensure that a device is not pulling down the sda or scl line after applying the supply voltage, since these low levels would block the bus. 3.1.15 start byte microcontrollers can be connected to the i 2 c-bus in two ways. a microcontroller with an on-chip hardware i 2 c-bus interface can be programmed to be only interrupted by requests from the bus. when the device does not have su ch an interface, it must constantly monitor the bus via software. obviously, the more ti mes the microcontroller monitors, or polls the bus, the less time it can spend carrying out its intended function. there is therefore a speed difference between fast hardware devices and a relatively slow microcontroller which relie s on software polling. in this case, data transfer can be preceded by a start procedure which is much longer than normal (see figure 19 ). the start procedure consists of: ? a start condition (s) ? a start byte (0000 0001) ? an acknowledge clock pulse (ack) ? a repeated start condition (sr). a. configuring master sends dump address to hardware master b. hardware master dumps data to selected slave fig 18. data transfer by a hardware-transmitter capable of dumping data directly to slave devices 002aac885 write a a r/w s p slave addr. h/w master dump addr. for h/w master x 002aac886 r/w write a a (n bytes + ack.) a/a s p dump addr. from h/w master data data
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 20 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual after the start condition s has been transmitted by a master which requires bus access, the start byte (0000 0001) is transmitted. another microcontroller can therefore sample the sda line at a low sampling rate until one of the seven zeros in the start byte is detected. after detection of th is low level on the sda line, the microcontroller can switch to a higher sampling rate to find the repeated start condition sr which is then used for synchronization. a hardware receiver resets upon receipt of the repeated start condition sr and therefore ignores the start byte. an acknowledge-related clock pulse is generated after the start byte. this is present only to conform with the byte handling format used on the bus. no device is allowed to acknowledge the start byte. 3.1.16 bus clear in the unlikely event where the clock (scl) is stuck low, the preferential procedure is to reset the bus using the hw reset signal if your i 2 c devices have hw reset inputs. if the i 2 c devices do not have hw reset inputs, cycle power to the devices to activate the mandatory internal power-on reset (por) circuit. if the data line (sda) is stuck low, the master should send nine cloc k pulses. the device that held the bus low should release it sometime within those nine clocks. if not, then use the hw reset or cycle power to clear the bus. 3.1.17 device id the device id field (see figure 20 ) is an optional 3-byte read-only (24 bits) word giving the following information: ? twelve bits with the manufacturer name, un ique per manufacturer (for example, nxp) ? nine bits with the part identification, assigned by manufacturer (for example, pca9698) ? three bits with the die revision, assign ed by manufacturer (for example, revx) fig 19. start byte procedure 002aac997 s 9 8 2 1 sr 7 nack dummy acknowledge (high) start byte 0000 0001 sda scl
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 21 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual the device id is read-only, hard-wired in the device and can be accessed as follows: 1. start command 2. the master sends the reserved device id i 2 c-bus address followed by the r/w bit set to ?0? (write): ?1111 1000?. 3. the master sends the i 2 c-bus slave address of the slave device it must identify. the lsb is a ?don?t care? value. only one device must acknowledge this byte (the one that has the i 2 c-bus slave address). 4. the master sends a re-start command. remark: a stop command followed by a start command resets the slave state machine and the device id read cannot be performed. also, a stop command or a re-start command followed by an access to another slave device resets the slave state machine and the device id read cannot be performed. 5. the master sends the reserved device id i 2 c-bus address followed by the r/w bit set to ?1? (read): ?1111 1001?. 6. the device id read can be done, starting with the 12 manufacturer bits (first byte + four msbs of the second byte), followed by the nine part identification bits (four lsbs of the second byte + five msbs of the third byte), and then the three die revision bits (three lsbs of the third byte). 7. the master ends the reading sequence by nacking the last byte, thus resetting the slave device state machine and allowing the master to send the stop command. remark: the reading of the device id can be stopped anytime by sending a nack command. if the master continues to ack the bytes after th e third byte, the slave rolls back to the first byte and keeps sending the device id sequence until a nack has been detected. fig 20. device id field 0 002aab942 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 revision 0 0 0 0 0 part identification manufacturer
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 22 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual designers of new i 2 c devices who want to implement the device id feature should contact nxp at i2c.support@nxp.com to have a unique manufacturer id assigned. table 4. assigned manufacturer ids manufacturer bits company 11 10 9 8 7 6 5 4 3 2 1 0 000000000000nxp semiconductors 000000000001nxp semiconductors (reserved) 000000000010nxp semiconductors (reserved) 000000000011nxp semiconductors (reserved) 000000000100ramtron international 000000000101analog devices 000000000110stmicroelectronics 000000000111on semiconductor 000000001000sprintek corporation 000000001001espros photonics ag 000000001010fujitsu semic onductor 000000001011flir
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 23 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 3.2 ultra fast-mode i 2 c-bus protocol the ufm i 2 c-bus is a 2-wire push-pull serial bus that operates from dc to 5 mhz transmitting data in one direction. it is most useful for speeds greater than 1 mhz to drive led controllers and other devices that do not need feedback. the ufm i 2 c-bus protocol is based on the standard i 2 c-bus protocol that consists of a start, slave address, command bit, ninth clock, and a stop bit. the command bit is a ?write? only, and the data bit on the ninth clock is driven high, igno ring the ack cycle due to the unidirectional nature of the bus. the 2-wire push-pull driver consists of a ufm serial clock (uscl) and serial data (usda). slave devices contain a unique address (whether it is a microcontroller, lcd driver, led controller, gpo) and operate only as receivers. an led driver may be only a receiver and can be supported by ufm, whereas a memory can both receive and transmit data and is not supported by ufm. since ufm i 2 c-bus uses push-pull drivers, it does not have the mu lti-master capability of the wired-and open-drain sm, fm, and fm+ i 2 c-buses. in ufm, a master is the only device that initiates a data transfer on the bus and generates the clock signals to permit that transfer. all other devices addressed are considered slaves. let us consider the case of a data transfer between a master and multiple slaves connected to the ufm i 2 c-bus (see figure 21 ). table 5. definition of ufm i 2 c-bus terminology term description transmitter the device that sends data to the bus receiver the device that receives data from the bus master the device that initiates a transfer, generates clock signals and terminates a transfer slave the device addressed by a master fig 21. example of ufm i 2 c-bus configuration 002aag654 usda uscl master asic led controller 3 lcd driver led controller 1 led controller 2 gpo
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 24 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual this highlights the master/transmitter-slave/ receiver relationship found on the ufm i 2 c-bus. note that these relationships are permane nt, as data transfer is only permitted in one direction. the transfer of data would proceed as follows: suppose that the master asic wants to send information to the led controller 2: ? asic a (master-transmitter), addresses led controller 2 (slave-receiver) by sending the address on the usda and generating the clock on uscl. ? asic a (master-transmitter), sends data to led controller 2 (slave-receiver) on the usda and generates the clock on uscl. ? asic a terminates the transfer. the possibility of connecting more than one ufm master to the ufm i 2 c-bus is not allowed due to bus contention on the push-pull outp uts. if an additional master is required in the system, it must be fully isolated from the other master (that is, with a true ?one hot? mux) as only one master is allowed on the bus at a time. generation of clock signals on the ufm i 2 c-bus is always the resp onsibility of the master device, that is, the master generates the cloc k signals when transferring data on the bus. bus clock signals from a master cannot be alte red by a slave device with clock stretching and the process of arbitration and clock synchronization does not exist within the ufm i 2 c-bus. ta b l e 6 summarizes the use of mandatory and optional portions of the ufm i 2 c-bus specification. table 6. applicability of i 2 c-bus features to ufm m = mandatory; o = optional; n/p = not possible feature configuration single master start condition m stop condition m acknowledge n/p synchronization n/p arbitration n/p clock stretching n/p 7-bit slave address m 10-bit slave address o general call address o software reset o start byte o device id n/p
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 25 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 3.2.1 usda and uscl signals both usda and uscl are unidirectional lines , with push-pull outputs. when the bus is free, both lines are pulled high by the upper tr ansistor of the output stage. data on the i 2 c-bus can be transferred at rates of up to 5000 kbit/s in the ultra fast-mode. the number of interfaces connected to the bus is limited by the bus loading, reflections from cable ends, connectors, and stubs. 3.2.2 usda and uscl logic levels due to the variety of different technology devices (cmos, nmos, bipolar) that can be connected to the i 2 c-bus, the levels of the logical ?0? (low) and ?1? (high) are not fixed and depend on the associated level of v dd . input reference levels are set as 30 % and 70 % of v dd ; v il is 0.3v dd and v ih is 0.7v dd . see figure 40 , timing diagram. see section 6 for electrical specifications. 3.2.3 data validity the data on the usda line must be stable during the high period of the clock. the high or low state of the data line can only change when the clock signal on the uscl line is low (see figure 23 ). one clock pulse is generated for each data bit transferred. 3.2.4 start and stop conditions both data and clock lines remain high when the bus is not busy. all transactions begin with a start (s) and can be terminated by a stop (p) (see figure 24 ). a high to low transition on the usda line while uscl is high defines a start condition. a low to high transition on the usda line while us cl is high defines a stop condition. fig 22. simplified schematic of uscl, usda outputs 002aag655 v dd(io) v ss uscl or usda pin fig 23. bit transfer on the ufm i 2 c-bus 002aaf113 data line stable; data valid change of data allowed usda uscl
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 26 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual start and stop conditions are always genera ted by the master. the bus is considered to be busy after the start condition. the bu s is considered to be free again a certain time after the stop condition. this bus free situation is specified in section 6 . the bus stays busy if a repeated start (sr) is generated instead of a stop condition. in this respect, the start (s) and repeated start (sr) conditions are functionally identical. for the remainder of this document, therefore, the s symbol is used as a generic term to represent both the start and repeated start conditions, unless sr is particularly relevant. detection of start and stop conditions by devi ces connected to the bus is easy if they incorporate the necessary interfacing hardwar e. however, microcontrollers with no such interface have to sample th e usda line at least twice per clock period to sense the transition. 3.2.5 byte format every byte put on the usda line must be eight bits long. the number of bytes that can be transmitted per transfer is unrestricted. the ma ster drives the usda high after each byte during the acknowledge cycle. da ta is transferred with the most significant bit (msb) first (see figure 25 ). a slave is not allowed to hold the clock low if it cannot receive another complete byte of data or while it is performi ng some other function, for example servicing an internal interrupt. fig 24. definition of start and stop conditions for ufm i 2 c-bus 002aaf145 usda uscl p stop condition s start condition fig 25. data transfer on the ufm i 2 c-bus s or sr sr or p usda uscl msb 12 89 12 3 to 7 8 nack nack 002aag657 start or repeated start condition stop or repeated start condition byte complete, interrupt within slave p sr master drives the line high on 9th clock cycle. slave never drives the usda line. 9
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 27 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 3.2.6 acknowledge (ack) and not acknowledge (nack) since the slaves are not able to respond th e ninth clock cycle, the ack and nack are not required. however, the clock cycle is preserved in the ufm to be compatible with the i 2 c-bus protocol. the ack and nack are also referred to as the ninth clock cycle. the master generates all clock pulses, including the ninth clock pulse. the ninth data bit is always driven high (?1?). slave devices are not allowed to drive the sda line at any time. 3.2.7 the slave address and r/w bit data transfers follow the format shown in figure 26 . after the start condition (s), a slave address is sent. this address is seven bi ts long followed by an eighth bit which is a data direction bit (w ) ? a ?zero? indicates a transmissi on (write); a ?one? indicates a request for data (read) and is not supported by ufm (except for the start byte, section 3.2.12 ) since the communication is unidirectional (refer to figure 27 ). a data transfer is always terminated by a stop condition (p) generated by the master. however, if a master still wishes to communicate on the bus, it c an generate a repeated start condition (sr) and address another slave wit hout first generating a stop condition. the ufm data transfer format is: ? master-transmitter transmits to slave-receiv er. the transfer direction is not changed (see figure 28 ). the master never acknowledges because it never receives any data but generates the ?1? on the ninth bit for the slave to conform to the i 2 c-bus protocol. fig 26. a complete ufm data transfer s 1 - 7 8 9 1 - 7 8 9 1 - 7 8 9 p stop condition start condition data nack data nack address nack w usda uscl 002aag658 fig 27. the first byte af ter the start procedure 002aag659 w lsb msb slave address
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 28 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual notes: 1. individual transaction or repeated start formats addressing multiple slaves in one transaction can be used. after the start condition and slave address is repeated, data can be transferred. 2. all decisions on auto-increment or decr ement of previously accessed memory locations, etc., are taken by the designer of the device. 3. each byte is followed by a not-ackn owledgment bit as indicated by the a blocks in the sequence. 4. i 2 c-bus compatible devices mu st reset their bus logic on receipt of a start or repeated start condition such that they all anticipate the sending of a slave address, even if these start conditions ar e not positioned according to the proper format. 5. a start condition immediately followed by a stop condition (void message) is an illegal format. many devices however are designed to operate properly under this condition. 6. each device connected to the bus is addressable by a unique address. a simple master/slave relationship exists, but it is possible to have multiple identical slaves that can receive and respond simultaneously, for example, in a group broadcast where all identical devices are configured at the same time, understanding that it is impossible to determine that each slave is responsive. refer to individual component data sheets. 3.2.8 10-bit addressing 10-bit addressing expands the number of possible addresses. devices with 7-bit and 10-bit addresses can be connected to the same i 2 c-bus, and both 7-bit and 10-bit addressing can be used in all bus speed modes. the 10-bit slave address is formed from the first two bytes following a start condition (s) or a repeated start condition (sr).the first seven bits of the first byte are the combination 1111 0xx of which the last two b its (xx) are the two most significant bits (msbs) of the 10-bit address; the eighth bit of the first byte is the r/w bit that determines the direction of the message. although there are eight possible combinatio ns of the reserved address bits 1111 xxx, only the four combinations 1111 0xx are used for 10-bit addressing. the remaining four combinations 1111 1xx are reserved for future i 2 c-bus enhancements. fig 28. a master-transmitter addressing a slave receiver with a 7-bit address 002aag660 a 0 (write) data transferred (n bytes + not acknowledge) a = not acknowledge (usda high) s = start condition p = stop condition w from master to slave data data a slave address s p a
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 29 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual only the write format previously described for 7-bit addressing is possible with 10-bit addressing. detailed here: ? master-transmitter transmits to slave-receiver with a 10-bit slave address. the transfer direction is not changed (see figure 29 ). when a 10-bit address follows a start condition, each slave compares the firs t seven bits of the first byte of the slave address (1111 0xx) with its own address and tests if the eighth bit (r/w direction bit) is 0 (na1). all slaves that found a match compare the eight bits of the second byte of the slave address (xxxx xxxx) with their own addresses, but only one slave finds a match (na2). the matching slave remains addr essed by the master until it receives a stop condition (p) or a repeated start condition (sr) followed by a different slave address. the start byte 0000 0001 (01h) can precede the 10-bit addressing in the same way as for 7-bit addressing (see section 3.2.12 ). 3.2.9 reserved addresses in ufm the ufm i 2 c-bus has a different physical layer than the other i 2 c-bus modes. therefore the available slave address range is different. two groups of eight addresses (0000 xxx and 1111 xxx) are reserved fo r the purposes shown in ta b l e 7 . [1] the general call address is used for seve ral functions including software reset. [2] no ufm device is allowed to acknowl edge at the reception of the start byte. assignment of addresses within a local system is up to the system architect who must take into account the devices being used on the bus and any future interaction with reserved addresses. for example, a device with seven user-assignable address pins allows all 128 addresses to be assigned. if it is known that the reserved address is never going to be used for its intended purpose, then a reserved address can be used for a slave address. fig 29. a master-transmitter addresses a slave-receiver with a 10-bit address 002aag661 w na1 (write) na2 na na 1 1 1 1 0 x x 0 slave address 1st 7 bits s data p data slave address 2nd byte table 7. reserved addresses x = don?t care; 1 = high; 0 = low. slave address r/w bit description 0000 000 0 general call address [1] 0000 000 1 start byte [2] 0000 001 x reserved for future purposes 0000 010 x reserved for future purposes 0000 011 x reserved for future purposes 0000 1xx x reserved for future purposes 1111 1xx x reserved for future purposes 1111 0xx x 10-bit slave addressing
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 30 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual the i 2 c-bus committee coordina tes allocation of i 2 c addresses. further information can be obtained from the nxp web site www.nxp.com/i2c . 3.2.10 general call address the general call address is for addressing every device connected to the i 2 c-bus at the same time. however, if a device does not ne ed any of the data supplied within the general call structure, it can ignore this address. if a device does require data from a general call address, it behaves as a slave-receiver. the master does not actually know how many devices are responsive to the general call. the second and following bytes are received by every slave-receiver capable of handling th is data. a slave that cannot process one of these bytes must ignore it. the meaning of the general call address is always specified in the second byte (see figure 30 ). there are two cases to consider: ? when the least significant bit b is a ?zero? ? when the least significant bit b is a ?one? when bit b is a ?zero?, the second byte has the following definition: 0000 0110 (06h) ? reset and write programmable part of slave address by hardware. on receiving this 2-byte sequence, all devices designed to respond to the general call address reset and take in the programmable part of their address. 0000 0100 (04h) ? write programmable part of slave address by hardware. behaves as above, but the device does not reset. 0000 0000 (00h) ? this code is not allowed to be used as the second byte. sequences of programming procedure are published in the appropriate device data sheets. the remaining codes have not been fixed and devices must ignore them. when bit b is a ?one?, the 2-byte sequence is ignored. 3.2.11 software reset following a general call, (0000 0000), sending 0000 0110 (06h) as the second byte causes a software reset. this feature is op tional and not all devices respond to this command. on receiving this 2-byte sequence, all devices designed to respond to the general call address reset and take in the programmable part of their address. 3.2.12 start byte microcontrollers can be connected to the i 2 c-bus in two ways. a microcontroller with an on-chip hardware i 2 c-bus interface can be programmed to be only interrupted by requests from the bus. when the device does not have su ch an interface, it must constantly monitor the bus via software. obviously, the more ti mes the microcontroller monitors, or polls the bus, the less time it can spend carrying out its intended function. fig 30. general call address format 002aag662 lsb second byte 0 0 0 0 0 0 0 0 a x x x x x x x ba first byte (general call address)
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 31 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual there is therefore a speed difference between fast hardware devices and a relatively slow microcontroller which relie s on software polling. in this case, data transfer can be preceded by a start procedure which is much longer than normal (see figure 31 ). the start procedure consists of: ? a start condition (s) ? a start byte (0000 0001) ? a not acknowledge clock pulse (nack) ? a repeated start condition (sr) after the start condition s has been transmitted by a master which requires bus access, the start byte (0000 0001) is transmitted. another microcontroller can therefore sample the usda line at a low sampling rate until one of the seven zeros in the start byte is detected. after detection of this low level on the usda line, the microcontroller can switch to a higher sampling rate to find the repeated start condition sr, which is then used for synchronization. a hardware receiver resets upon receipt of the repeated start condition sr and therefore ignores the star t byte. an acknowledge-related clock pulse is generated after the start byte. this is pr esent only to conform with the byte handling format used on the bus. no device is allowed to acknowledge the start byte. 3.2.13 unresponsive slave reset in the unlikely event where the slave becomes unresponsive (for example, determined through external feedback, not through ufm i 2 c-bus), the preferential procedure is to reset the slave by using the software reset command or the hardware reset signal. if the slaves do not support these features, then cycle power to the devices to activate the mandatory internal power-on reset (por) circuit. 3.2.14 device id the device id field is not supported in ufm. fig 31. start byte procedure 002aag663 s 9 8 2 1 sr 7 nack dummy acknowledge (high) start byte 0000 0001 usda uscl
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 32 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 4. other uses of the i 2 c-bus communications protocol the i 2 c-bus is used as the communications prot ocol for several system architectures. these architectures have added command sets and application-specific extensions in addition to the base i 2 c specification. in general, simple i 2 c-bus devices such as i/o extenders could be used in any one of these ar chitectures since the protocol and physical interfaces are the same. 4.1 cbus compatibility cbus receivers can be connected to the standard-mode i 2 c-bus. however, a third bus line called dlen must then be connected and the acknowledge bit omitted. normally, i 2 c transmissions are sequences of 8-bit bytes; cbus compatible devices have different formats. in a mixed bus structure, i 2 c-bus devices must not respond to the cbus message. for this reason, a special cbus address (0000 001x) to which no i 2 c-bus compatible device responds has been reserved. after transmissi on of the cbus address, the dlen line can be made active and a cbus-format transmission sent. after the stop condition, all devices are again ready to accept data. master-transmitters can send cbus formats after sending the cbus address. the transmission is ended by a stop condition, recognized by all devices. remark: if the cbus configuration is known, and expansion with cbus compatible devices is not foreseen, the designer is allowe d to adapt the hold time to the specific requirements of the device(s) used. 4.2 smbus - system management bus the smbus uses i 2 c hardware and i 2 c hardware addressing, but adds second-level software for building special systems. in part icular, its specifications include an address resolution protocol that can make dynamic address allocations. dynamic reconfiguration of the hardware and software allow bus devices to be ?hot-plugged? and used immediately, without restar ting the system. the devices are recognized automatically and assigned unique addresses. this advantage results in a plug-and-play user interface. in both those pr otocols, there is a very useful distinction made between a system host and all the other devices in the system that can have the names and functions of masters or slaves. smbus is used today as a system management bus in most pcs. developed by intel and others in 1995, it modified some i 2 c electrical and software characteristics for better compatibility with th e quickly decreasing power supply budget of portable equipment. smbus also has a ?high power? version 2.0 that includes a 4 ma sink current that cannot be driven by i 2 c chips unless the pull-up resistor is sized to i 2 c-bus levels. 4.2.1 i 2 c/smbus compliancy smbus and i 2 c protocols are basically the same: a smbus master is able to control i 2 c devices and vice versa at the protocol level. the smbus clock is de fined from 10 khz to 100 khz while i 2 c can be 0hz to 100khz, 0hz to 400khz, 0hz to 1mhz and 0 hz to 3.4 mhz, depending on the mode. this means that an i 2 c-bus running at less than 10 khz is not smbus compliant since the smbus devices may time out.
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 33 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual logic levels are slightly different also: ttl for smbus: low = 0.8 v and high = 2.1 v, versus the 30 %/70 % v dd cmos level for i 2 c. this is not a problem if v dd > 3.0 v. if the i 2 c device is below 3.0 v, then there could be a problem if the logic high/low levels are not properly recognized. 4.2.2 time-out feature smbus has a time-out feature which resets devices if a communication takes too long. this explains the minimum clock frequency of 10 khz to prevent locking up the bus. i 2 c can be a ?dc? bus, meaning that a slav e device stretches the master clock when performing some routine while t he master is accessing it. this notifies the master that the slave is busy but does not wa nt to lose the communication. the slave device will allow continuation after its task is comple te. there is no limit in the i 2 c-bus protocol as to how long this delay can be, whereas for a smbus system, it would be limited to 35 ms. smbus protocol just assumes that if somethi ng takes too long, then it means that there is a problem on the bus and that all devices must reset in order to clear this mode. slave devices are not then allowed to hold the clock low too long. 4.2.3 differences between smbus 1.0 and smbus 2.0 the smbus specification defines two classes of electrical characteristics: low power and high power. the first class, originally defined in the smbus 1.0 and 1. 1 specifications, was designed primarily with smart batteries in mind, but could be used with other low-power devices. the 2.0 version introduces an alternative high er power set of electrical characteristics. this class is appropriate for use when higher drive capability is required, for example with smbus devices on pci add-in cards and for connecting such cards across the pci connector between each other and to smbus devices on the system board. devices may be powered by the bus v dd or by another power source, v bus (as with, for example, smart batteries), an d will inter-operat e as long as they adhere to the smbus electrical specificat ions for their class. nxp devices have a higher power set of electrical characteristics than smbus 1.0. the main difference is the curr ent sink capability with v ol =0.4v. ? smbus low power = 350 a ? smbus high power = 4 ma ? i 2 c-bus = 3 ma smbus ?high power? devices and i 2 c-bus devices will work together if the pull-up resistor is sized for 3 ma. for more information, refer to: www.nxp.com/redirect/smbus.org .
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 34 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 4.3 pmbus - power management bus pmbus is a standard way to communicate between power converters and a system host over the smbus to provide mo re intelligent control of the power converters. the pmbus specification defines a standard set of device commands so that devices from multiple sources function identically. pmbus devices use the smbus version 1.1 plus extensions for transport. for more information, refer to: www.nxp.com/redirect/pmbus.org . 4.4 intelligent platform ma nagement interface (ipmi) intelligent platform management interface (ipmi) defines a standardized, abstracted, message-based interf ace for intelligent pl atform management ha rdware. ipmi also defines standardized records for describing platform management devices and their characteristics. ipmi increase s reliability of systems by monitoring parameters such as temperatures, voltages, fans and chassis intrusion. ipmi provides general system management functions such as automatic alerting, automatic system shutdown and restart, remote restart and power control. the standardized interface to intellig ent platform management hardwa re aids in prediction and early monitoring of hardware failures as well as diagnosis of hardware problems. this standardized bus and protocol for ext ending management control, monitoring, and event delivery within the chassis: ? i 2 c based ? multi-master ? simple request/response protocol ? uses ipmi command sets ? supports non-ipmi devices ? physically i 2 c but write-only (master capable devices); hot swap not required ? enables the baseboard management contro ller (bmc) to accept ipmi request messages from other managem ent controllers in the system ? allows non-intelligent devices as well as management controllers on the bus ? bmc serves as a controller to give system software access to ipmb. hardware implementation is isolated from software implementation so that new sensors and events can then be added without any software changes. for more information, refer to: www.nxp.com/redirect/intel.com/design/servers/ipmi .
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 35 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 4.5 advanced telecom computing architecture (atca) advanced telecom computing architecture (atc a) is a follow-on to compact pci (cpci), providing a standardized form-factor with larger card area, larger pitch and larger power supply for use in advanced rack-mounted telecom hardware. it includes a fault-tolerant scheme for thermal mana gement that uses i 2 c-bus communications between boards. advanced telecom computing architecture (atca) is backed by more than 100 companies including many of the large players such as intel, lucent, and motorola. there are two general compliant approaches to an atca-compliant fan control: the first is an intelligent fru (field replaceable unit) which means that the fan control would be directly connected to the ipmb (intelligent platform manage ment bus); the second is a managed or non-intelligent fru. one requirement is the inclusion of hardware and software to manage the dual i 2 c-buses. this requires an on-board isolated supply to power the circuitry, a buffered dual i 2 c-bus with rise time accelerators, and 3-state capability. the i 2 c controller must be able to support a multi-master i 2 c dual bus and handle the standard set of fan commands outlined in the protoc ol. in addition, on-boa rd temperature reporting, tray capability reporting, fan turn-off ca pabilities, and non-volat ile storage are required. for more information, refer to: www.nxp.com/redirect/picmg.org/v2internal/newinitiative . 4.6 display data channel (ddc) the display data channel (ddc) allows a monitor or display to inform the host about its identity and capabilities. the specification for ddc version 2 calls for compliance with the i 2 c-bus standard mode specification. it allo ws bidirectional communication between the display and the host, enabling control of m onitor functions such as how images are displayed and communication with other devices attached to the i 2 c-bus. for more information, refer to: www.nxp.com/redirect/vesa.org . 5. bus speeds originally, the i 2 c-bus was limited to 100 kbit/s oper ation. over time there have been several additions to the specification so that there are now five operating speed categories. standard-mode, fast-mode (fm) , fast-mode plus (fm+), and high-speed mode (hs-mode) devices are downward-compatible ? any device may be operated at a lower bus speed. ultra fast-mode devices are not compatible with previous versions since the bus is unidirectional. ? bidirectional bus: ? standard-mode (sm) , with a bit rate up to 100 kbit/s ? fast-mode (fm) , with a bit rate up to 400 kbit/s ? fast-mode plus (fm+) , with a bit rate up to 1 mbit/s ? high-speed mode (hs-mode) , with a bit rate up to 3.4 mbit/s. ? unidirectional bus: ? ultra fast-mode (ufm) , with a bit rate up to 5 mbit/s
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 36 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 5.1 fast-mode fast-mode devices can receive and trans mit at up to 400 kbit/s. the minimum requirement is that they can synchronize with a 400 kbit/s transfer; they can then prolong the low period of the scl signal to slow dow n the transfer. the protocol, format, logic levels and maximum capacitive load for the sda and scl lines are the same as the standard-mode i 2 c-bus specification. fast-mode de vices are downward-compatible and can communicate with standard-mode devices in a 0 to 100 kbit/s i 2 c-bus system. as standard-mode devices, however, are not upward compatible; they should not be incorporated in a fast-mode i 2 c-bus system as they cannot follow the higher transfer rate and unpredictable states would occur. the fast-mode i 2 c-bus specification has the following additional features compared with the standard-mode: the maximum bit rate is increased to 400 kbit/s. timing of the serial data (sda) and serial clock (scl) signals has been adapted. there is no need for compatibility with other bus systems su ch as cbus because they cannot operate at the increased bit rate. the inputs of fast-mode devices incorporate spike suppression and a schmitt trigger at the sda and scl inputs. the output buffers of fast-mode devices incorporate slop e control of the falling edges of the sda and scl signals. if the power supply to a fast-mode device is switched off, the sda and scl i/o pins must be floating so that they do not obstruct the bus lines. the external pull-up devices connected to th e bus lines must be adapted to accommodate the shorter maximum permissible rise time for the fast-mode i 2 c-bus. for bus loads up to 200 pf, the pull-up device for each bus line can be a resistor; for bus loads between 200 pf and 400 pf, the pull-up device can be a current source (3 ma max.) or a switched resistor circuit (see section 7.2.4 ). 5.2 fast-mode plus fast-mode plus (fm+) devices offer an increase in i 2 c-bus transfer speeds and total bus capacitance. fm+ devices can transfer informati on at bit rates of up to 1 mbit/s, yet they remain fully downward compat ible with fast- or standard-mo de devices for bidirectional communication in a mixed-speed bus system. the same serial bus protocol and data format is maintained as with the fast- or standard-mode system. fm+ devices also offer increased drive current over fast- or standard-mode devices allowing them to drive longer and/or more heavily loaded buses so that bus buffers do not need to be used. the drivers in fast-mode plus parts are strong enough to satisfy the fast-mode plus timing specification with the same 400 pf load as standard-mode parts. to be backward compatible with standard-mode, they are also tolerant of the 1 s rise time of standard-mode parts. in applications where only fast-mode plus parts are present, the high drive strength and tolerance for slow rise and fall times allow the use of larger bus capacitance as long as set-up, minimum low time and minimum high time for
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 37 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual fast-mode plus are all satisfied and the fall ti me and rise time do not exceed the 300 ns t f and 1 s t r specifications of standard-mode. bus speed can be traded against load capacitance to increase the maximum capacitance by about a factor of ten. 5.3 hs-mode high-speed mode (hs-mode) devices offer a quantum leap in i 2 c-bus transfer speeds. hs-mode devices can transfer information at bit ra tes of up to 3.4 mbit/s, yet they remain fully downward compatible wi th fast-mode plus, fast- or standard-mode (f/s) devices for bidirectional communication in a mixed-speed bus system. with the exception that arbitration and clock synchronization is not performed during the hs-mode transfer, the same serial bus protocol and data format is maintained as wit h the f/s-mode system. 5.3.1 high speed transfer to achieve a bit transfer of up to 3.4 mbit/s, the following improvements have been made to the regular i 2 c-bus specification: ? hs-mode master devices have an open-drain ou tput buffer for the sdah signal and a combination of an open-drain pull-down and current-source pull-up circuit on the sclh output. this current-source circuit sh ortens the rise time of the sclh signal. only the current-source of one master is enabled at any one time, and only during hs-mode. ? no arbitration or clock synchronization is performed during hs-mode transfer in multi-master systems, whic h speeds-up bit handling cap abilities. the arbitration procedure always finishes after a preceding master code transmission in f/s-mode. ? hs-mode master devices generate a serial cl ock signal with a high to low ratio of 1 to 2. this relieves the timing requirements for set-up and hold times. ? as an option, hs-mode master devices can have a built-in bridge. during hs-mode transfer, the high-speed data (sdah) and hi gh-speed serial clock (sclh) lines of hs-mode devices are separated by this bridge from the sda and scl lines of f/s-mode devices. this reduces the capaci tive load of the sdah and sclh lines resulting in faster rise and fall times. ? the only difference between hs-mode slave devices and f/s-mode slave devices is the speed at which they operate. hs-mode sl aves have open-drain output buffers on the sclh and sdah outputs. optional pull-down transistors on the sclh pin can be used to stretch the low level of the sclh signal, although this is only allowed after the acknowledge bit in hs-mode transfers. ? the inputs of hs-mode devices incorporate spike suppression and a schmitt trigger at the sdah and sclh inputs. ? the output buffers of hs-mode devices incorporat e slope control of the falling edges of the sdah and sclh signals. figure 32 shows the physical i 2 c-bus configuration in a system with only hs-mode devices. pins sda and scl on the master devices are only used in mixed-speed bus systems and are not connected in an hs-mode on ly system. in such cases, these pins can be used for other functions. optional series resistors r s protect the i/o stages of the i 2 c-bus devices from high-voltage spikes on the bus lines a nd minimize ringing and interference.
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 38 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual pull-up resistors r p maintain the sdah and sclh lines at a high level when the bus is free and ensure that the signals are pulled up from a low to a high level within the required rise time. for higher capacitive bus-line loads (>100 pf), the resistor r p can be replaced by external current source pull-ups to meet the rise time requirements. unless proceeded by an acknowledge bit, the rise ti me of the sclh clock pulses in hs-mode transfers is shortened by the internal current-source pull-up circuit mcs of the active master. 5.3.2 serial data format in hs-mode serial data transfer format in hs-mode meets the standard-mode i 2 c-bus specification. hs-mode can only commence afte r the following co nditions (all of which are in f/s-mode): 1. start condition (s) 2. 8-bit master code (0000 1xxx) 3. not-acknowledge bit (a ) figure 33 and figure 34 show this in more detail. th is master code has two main functions: ? it allows arbitration and synchronization between competing masters at f/s-mode speeds, resulting in one winning master. ? it indicates the beginning of an hs-mode transfer. hs-mode master codes are reserved 8-bit code s, which are not used for slave addressing or other purposes. furthermore, as each mast er has its own unique master code, up to eight hs-mode masters can be present on the one i 2 c-bus system (although master code (1) sda and scl are not used here but may be used for other functions. (2) to input filter. (3) only the active master can enable its current-source pull-up circuit. (4) dotted transistors are optional open-drain outputs which can stretch the serial clock signal sclh. fig 32. i 2 c-bus configuration with hs-mode devices only msc612 v ss slave sdah sclh v ss master/slave sdah sclh sda mcs scl r s r s slave sdah sclh v ss r s r s r s r s v dd v ss master/slave sdah sclh sda scl r s r s v dd (1) (1) (1) (1) (2) (2) (4) (4) (3) mcs (3) (2) (2) (2) (2) (2) (2) v dd r p r p sclh sdah
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 39 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 0000 1000 should be reserved for test and diagnostic purposes). the master code for an hs-mode master device is software programmable and is chosen by the system designer. arbitration and clock synchronization only take place during the transmission of the master code and not-acknowledge bit (a ), after which one winning master remains active. the master code indicates to other devices that an hs-mode transfer is to begin and the connected devices must meet the hs-mode sp ecification. as no device is allowed to acknowledge the master code, the master code is followed by a not-acknowledge (a ). after the not-acknowledge bit (a ), and the sclh line has been pulled-up to a high level, the active master switches to hs-mode and enables (at time t h , see figure 34 ) the current-source pull-up circuit for the sclh signal. as other devices can delay the serial transfer before t h by stretching the low period of t he sclh signal, the active master enables its current-source pull-up circuit when all devices have released the sclh line and the sclh signal has reached a high level, thus speeding up the last part of the rise time of the sclh signal. the active master then sends a repeated st art condition (sr) followed by a 7-bit slave address (or 10-bit slave address, see section 3.1.11 ) with a r/w bit address, and receives an acknowledge bit (a) from the selected slave. after a repeated start condition and after each acknowledge bit (a) or not-acknowledge bit (a ), the active master disables its current- source pull-up circuit. this enables other devices to delay the serial transfer by stre tching the low period of the sclh signal. the active master re-enables its current-source pull-up circuit again when all devices have released and the sclh signal re aches a high level, and so s peeds up the last part of the sclh signal?s rise time. data transfer continues in hs-mode after the next repeated start (sr), and only switches back to f/s-mode after a stop cond ition (p). to reduce the overhead of the master code, it is possible that a master links a number of hs-mode transfers, separated by repeated start conditions (sr). fig 33. data transfer format in hs-mode f/s-mode hs-mode (current-source for sclh enabled) f/s-mode msc616 a a a/a data (n bytes + ack.) s r/w master code sr slave add. hs-mode continues sr slave add. p
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 40 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 5.3.3 switching from f/s-mode to hs-mode and back after reset and initializ ation, hs-mode devices must be in fast-mode (which is in effect f/s-mode, as fast-mode is downward compatible with standard-mode). each hs-mode device can switch from fast-mode to hs-mode and back and is controlled by the serial transfer on the i 2 c-bus. before time t 1 in figure 34 , each connected device operates in fast-mode. between times t 1 and t h (this time interval can be stretched by any device) each connected device must recognize the ?s 00001xxx a? sequence and has to switch its internal circuit from the fast-mode setting to the hs-mode setting. between times t 1 and t h , the connected master and slave devices perform this switching by the following actions. the active (winning) master: 1. adapts its sdah and sclh input filters according to the spike suppression requirement in hs-mode. 2. adapts the set-up and hold times according to the hs-mode requirements. 3. adapts the slope control of its sdah and sclh output stages according to the hs-mode requirement. 4. switches to the hs-mode bit-rate , which is required after time t h . 5. enables the current source pull-up circuit of its sclh output stage at time t h . fig 34. a complete hs-mode transfer msc618 8-bit master code 0000 1xxx a t h t 1 s f/s-mode hs-mode if p then f/s-mode if sr (dotted lines) then hs-mode 16789 6789 1 1 2 to 5 2 to 5 2 to 5 67 89 sdah sclh sdah sclh t h t fs sr sr p n + (8-bit data + a/a) 7-bit sla r/w a = master current source pull-up = resistor pull-up
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 41 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual the non-active, or losing masters: 1. adapt their sdah and sclh input filt ers according to the spike suppression requirement in hs-mode. 2. wait for a stop condition to detect when the bus is free again. all slaves: 1. adapt their sdah and sclh input filt ers according to the spike suppression requirement in hs-mode. 2. adapt the set-up and hold times according to the hs-mode requirements. this requirement may already be fulfilled by the adaptation of the input filters. 3. adapt the slope control of their sdah output stages, if necessary. for slave devices, slope control is applicable for the sdah output stage only and, depending on circuit tolerances, both the fast-mode and hs-mode requirements may be fulfilled without switching its internal circuit. at time t fs in figure 34 , each connected device must recognize the stop condition (p) and switch its internal circuit from the hs-mo de setting back to the fast-mode setting as present before time t 1 . this must be completed within the minimum bus free time as specified in ta b l e 1 0 according to the fast-mode specification. 5.3.4 hs-mode devices at lower speed modes hs-mode devices are fully downwards compatible , and can be connected to an f/s-mode i 2 c-bus system (see figure 35 ). as no master code is transmitted in such a configuration, all hs-mode master devices stay in f/s-m ode and communicate at f/s-mode speeds with their current-source disabled. the sdah an d sclh pins are used to connect to the f/s-mode bus system, allowing the sda and scl pins (if present) on the hs-mode master device to be used for other functions.
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 42 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 5.3.5 mixed speed modes on one serial bus system if a system has a combination of hs-mode, fast-mode and/or standard-mode devices, it is possible, by using an interconnection br idge, to have different bit rates between different devices (see figure 36 and figure 37 ). one bridge is required to connect/disconnec t an hs-mode section to/from an f/s-mode section at the appropriate time. this bridge includes a level shift function that allows devices with different supply voltages to be connected. for example f/s-mode devices with a v dd2 of 5 v can be connected to hs-mode devices with a v dd1 of 3 v or less (that is, where v dd2 v dd1 ), provided sda and scl pins are 5 v tolerant. this bridge is incorporated in hs-mode master devices and is completely controlled by the serial signals sdah, sclh, sda and scl. such a bridge can be implemented in any ic as an autonomous circuit. tr1, tr2 and tr3 are n-channel transistors. tr1 and tr2 have a transfer gate function, and tr3 is an open-drain pull-down stage. if tr1 or tr2 are switched on they transfer a low level in both directions, otherwise when both the drain and source rise to a high level there is a high-impedance between th e drain and source of each switched-on transistor. in the latter case, the transistors act as a level shifter as sdah and sclh are pulled-up to v dd1 and sda and scl are pulled-up to v dd2 . during f/s-mode speed, a bridge on one of the hs-mode masters connects the sdah and sclh lines to the corresponding sda and scl lines thus permitting hs-mode devices to communicate with f/s-mode devi ces at slower speeds. arbitration and synchronization are possible during the total f/s-mode transfer between all connected devices as described in section 3.1.7 . during hs-mode transfer, however, the bridge (1) bridge not used. sda and scl may have an alternative function. (2) to input filter. (3) the current-source pull- up circuit stays disabled. (4) dotted transistors are optional open-drain outputs which can stretch the serial clock signal scl. fig 35. hs-mode devices at f/s-mode speed v ss v ss hs-mode slave sdah sclh v ss hs-mode master/slave sdah sclh sda scl r s r s hs-mode slave sdah sclh v ss r s r s f/s-mode master/slave sda scl r s r s f/s-mode slave sda scl v ss r s r s r s r s v dd (1) (2) (2) (4) (4) (4) (2) (2) (2) (2) (2) (2) (2) (2) (3) (1) v dd r p r p scl sda msc613
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 43 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual opens to separate the two bus sections and allows hs-mode devices to communicate with each other at 3.4 mbit/s. arbitration between hs-mode devices and f/s-mode devices is only performed during the master code (0000 1xxx) , and normally won by one hs-mode master as no slave address has four leading zeros. other masters can win the arbitration only if they send a reserved 8-bit code (0000 0xxx) . in such cases, the bridge remains closed and the transfer proceeds in f/s-mode. ta b l e 8 gives the possible communication speeds in such a system. remark: ta b l e 8 assumes that the hs devices are isolated from the fm and sm devices when operating at 3.4 mbit/s. the bus spee d is always constrained to the maximum communication rate of the slowest device attached to the bus. (1) bridge not used. sda and scl may have an alternative function. (2) to input filter. (3) only the active master can enable its current-source pull-up circuit. (4) dotted transistors are optional open-drain outputs whic h can stretch the serial clock signal scl or sclh. fig 36. bus system with transfer at hs-mode and f/s-mode speeds msc614 v ss hs-mode slave sdah sclh v ss hs-mode master/slave sdah sclh sda scl r s r s hs-mode slave sdah sclh v ss r s r s f/s-mode master/slave sda sdah sclh sda scl scl v ss v ss r s r s f/s-mode slave sda scl v ss r s r s r s r s r s r s v dd v ss hs-mode master/slave v dd v dd1 r p r p v dd2 r p r p sclh sdah mcs mcs (3) (3) (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) (4) (4) (4) (2) (1) (1) bridge tr1 tr3 tr2 table 8. communication bit rates in a mixed-speed bus system transfer between serial bus system configuration hs + fast + standard hs + fast hs + standard fast + standard hs  hs 0 to 3.4 mbit/s 0 to 3.4 mbit/s 0 to 3.4 mbit/s - hs  fast 0 to 100 kbit/s 0 to 400 kbit/s - - hs  standard 0 to 100 kbit/s - 0 to 100 kbit/s - fast  standard 0 to 100 kbit/s - - 0 to 100 kbit/s fast  fast 0 to 100 kbit/s 0 to 400 kbit/s - 0 to 100 kbit/s standard  standard 0 to 100 kbit/s - 0 to 100 kbit/s 0 to 100 kbit/s
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 44 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 5.3.6 standard, fast-mode and fast-mode plus transfer in a mixed-speed bus system the bridge shown in figure 36 interconnects corresponding serial bus lines, forming one serial bus system. as no ma ster code (0000 1xxx) is tran smitted, the cu rrent-source pull-up circuits stay disabled and all output stages are open-drain. all devices, including hs-mode devices, communicate with each othe r according to the protocol, format and speed of the f/s-mode i 2 c-bus specification. 5.3.7 hs-mode transfer in a mixed-speed bus system figure 37 shows the timing diagram of a complete hs-mode transfer, which is invoked by a start condition, a master code, and a not-acknowledge a (at f/s-mode speed). although this timing diagram is split in two parts, it should be viewed as one timing diagram were time point t h is a common point for both parts. the master code is recognized by the bridge in the active or non-active master (see figure 36 ). the bridge performs the following actions: 1. between t 1 and t h (see figure 37 ), transistor tr1 opens to separate the sdah and sda lines, after which transistor tr3 cl oses to pull-down the sda line to v ss . 2. when both sclh and scl become high (t h in figure 37 ), transistor tr2 opens to separate the sclh and scl lines. tr2 must be opened before sclh goes low after sr. hs-mode transfer starts after t h with a repeated start condition (sr). during hs-mode transfer, the scl line stays at a high and th e sda line at a low steady-state level, and so is prepared for the transfer of a stop condition (p). after each acknowledge (a) or not-acknowledge bit (a ), the active master disables its current-source pull-up circuit. this enables other devic es to delay the serial transfer by stretching the low period of the sclh si gnal. the active master re-enables its current-source pull-up circuit again when all devices are released and the sclh signal reaches a high level, and so speeds up the la st part of the sclh signal rise time. in irregular situations, f/s-mode devices can close the bridge (tr1 and tr2 closed, tr3 open) at any time by pulling do wn the scl line for at least 1 s, for example, to recover from a bus hang-up. hs-mode finishes with a stop condition and brings the bus system back into the f/s-mode. the active master disables its current-source mcs when the stop condition (p) at sdah is detected (t fs in figure 37 ). the bridge also recognizes this stop condition and takes the following actions: 1. transistor tr2 closes after t fs to connect sclh with scl; both of which are high at this time. transistor tr3 opens after t fs , which releases the sda line and allows it to be pulled high by the pull-up resistor r p . this is the stop condition for the f/s-mode devices. tr3 must open fast enough to ensure the bus free time between the stop condition and the earliest next start condition is according to the fast-mode specification (see t buf in ta b l e 1 0 ). 2. when sda reaches a high (t 2 in figure 37 ), transistor tr1 closes to connect sdah with sda. (note: interconnections are made when all lines are high, thus preventing spikes on the bus lines.) tr1 and tr2 must be closed within the minimum bus free time according to the fast-mode specification (see t buf in ta b l e 1 0 ).
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 45 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 5.3.8 timing requirements for the bridge in a mixed-speed bus system it can be seen from figure 37 that the actions of the bridge at t 1 , t h and t fs must be so fast that it does not affect the sdah and sclh lines. furthermore the bridge must meet the related timing requirements of the fast-mode specification for the sda and scl lines. fig 37. a complete hs-mode transfer in a mixed-speed bus system mcs611 8-bit master code 00001xxx a t h t 1 t 2 s f/s mode hs-mode if p then f/s mode if sr (dotted lines) then hs-mode 16789 16789 6789 1 1 2 to 5 2 to 5 2 to 5 2 to 5 67 89 sdah sclh sda scl sdah sclh sda scl t h t fs sr sr p p n (8-bit data + a/a) 7-bit sla r/w a = mcs current source pull-up = rp resistor pull-up
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 46 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 5.4 ultra fast-mode ultra fast-mode (ufm) devices offer an increase in i 2 c-bus transfer speeds. ufm devices can transfer information at bit rates of up to 5 mbit/s. ufm devices offer push-pull drivers, eliminating the pull-up resistors, allowing higher tran sfer rates. the same serial bus protocol and data format is maintained as with the sm, fm, or fm+ system. ufm bus devices are not compatib le with bidirectional i 2 c-bus devices. 6. electrical specificati ons and timing for i/o stages and bus lines 6.1 standard-, fast-, and fast-mode plus devices the i/o levels, i/o current, sp ike suppression, output slope control and pin capacitance are given in ta b l e 9 . the i 2 c-bus timing characteristics, bus-line capacitance and noise margin are given in ta b l e 1 0 . figure 38 shows the timing definitions for the i 2 c-bus. the minimum high and low periods of the scl clock specified in table 10 determine the maximum bit transfer rates of 100 kbit/s for standard-mode devices, 400 kbit/s for fast-mode devices, and 1000 kbit/s for fast -mode plus. devices must be able to follow transfers at their own maximum bit rates, either by being able to transmit or receive at that speed or by applying the clock synchronization procedure described in section 3.1.7 which forces the master into a wait state and stretch the low period of the scl signal. in the latter case, the bit transfer rate is reduced.
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 47 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual [1] some legacy standard-mode devices had fixed input levels of v il = 1.5 v and v ih = 3.0 v. refer to component data sheets. [2] maximum v ih =v dd(max) + 0.5 v or 5.5 v, which ever is lower. see component data sheets. [3] the same resistor value to drive 3 ma at 3.0 v v dd provides the same rc time constant when using <2 v v dd with a smaller current draw. [4] in order to drive full bus load at 400 khz, 6 ma i ol is required at 0.6 v v ol . parts not meeting this specification can still function, but not at 400 khz and 400 pf. [5] the maximum t f for the sda and scl bus lines quoted in ta b l e 1 0 (300 ns) is longer than the specified maximum t of for the output stages (250 ns). this allows series protection resistors (r s ) to be connected between the sda/scl pins and the sda/scl bus lines as shown in figure 45 without exceeding the maximum specified t f . [6] necessary to be backwards compatible with fast-mode. [7] in fast-mode plus, fall time is specified the same for bot h output stage and bus timing. if se ries resistors are used, desig ners should allow for this when considering bus timing. [8] input filters on the sda and scl inputs su ppress noise spikes of less than 50 ns. [9] if v dd is switched off, i/o pins of fast-mode and fast-mode pl us devices must not obstr uct the sda and scl lines. [10] special purpose devices such as multiplexers and switches may exceed this capacitance because they connect multiple paths t ogether. table 9. characteristics of the sda and scl i/o stages n/a = not applicable. symbol parameter conditions standard-mode fast-mode fast-mode plus unit min max min max min max v il low-level input voltage [1] ? 0.5 0.3v dd ? 0.5 0.3v dd ? 0.5 0.3v dd v v ih high-level input voltage [1] 0.7v dd [2] 0.7v dd [2] 0.7v dd [1] [2] v v hys hysteresis of schmit t trigger inputs - - 0.05v dd - 0.05v dd -v v ol1 low-level output voltage 1 (open-drain or open-collector) at 3 ma sink current; v dd >2v 0 0.4 0 0.4 0 0.4 v v ol2 low-level output voltage 2 (open-drain or open-collector) at 2 ma sink current [3] ; v dd 2v -- 00.2v dd 00.2v dd v i ol low-level output current v ol =0.4v 3 - 3 - 20 - ma v ol =0.6v [4] -- 6 - - -ma t of output fall time from v ihmin to v ilmax - 250 [5] 20 (v dd /5.5v) [6] 250 [5] 20 (v dd /5.5v) [6] 120 [7] ns t sp pulse width of spikes that must be suppressed by the input filter -- 0 50 [8] 050 [8] ns i i input current each i/o pin 0.1v dd xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 48 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual [1] all values referred to v ih(min) (0.3v dd ) and v il(max) (0.7v dd ) levels (see table 9 ). [2] t hd;dat is the data hold time that is measured from the falling edge of scl, applies to data in transmission and the acknowledge. [3] a device must internally provide a hold time of at least 300 ns for the sda signal (with respect to the v ih(min) of the scl signal) to bridge the undefined region of the falling edge of scl. [4] the maximum t hd;dat could be 3.45 s and 0.9 s for standard-mode and fast-mode, but must be less than the maximum of t vd;dat or t vd;ack by a transition time. this maximum must only be met if the device does not stretch the low period (t low ) of the scl signal. if the clock stretches the scl, the dat a must be valid by the set-up time before it releases the clock. table 10. characteristics of the sda and scl bus lines for standard, fast, and fast-mode plus i 2 c-bus devices [1] symbol parameter conditions standard-mode fast-mode fast-mode plus unit min max min max min max f scl scl clock frequency 0 100 0 400 0 1000 khz t hd;sta hold time (repeated) start condition after this period, the first clock pulse is generated. 4.0 - 0.6 - 0.26 - s t low low period of the scl clock 4.7 - 1.3 - 0.5 - s t high high period of the scl clock 4.0 - 0.6 - 0.26 - s t su;sta set-up time for a repeated start condition 4.7 - 0.6 - 0.26 - s t hd;dat data hold time [2] cbus compatible masters (see remark in section 4.1 ) 5.0 - - - - - s i 2 c-bus devices 0 [3] - [4] 0 [3] - [4] 0- s t su;dat data set-up time 250 - 100 [5] -50 -ns t r rise time of both sda and scl signals - 1000 20 300 - 120 ns t f fall time of both sda and scl signals [3] [6] [7] [8] - 300 20 (v dd /5.5v) 300 20 (v dd /5.5v) [9] 120 [8] ns t su;sto set-up time for stop condition 4.0 - 0.6 - 0.26 - s t buf bus free time between a stop and start condition 4.7 - 1.3 - 0.5 - s c b capacitive load for each bus line [10] - 400 - 400 - 550 pf t vd;dat data valid time [11] -3.45 [4] -0.9 [4] -0.45 [4] s t vd;ack data valid acknowledge time [12] -3.45 [4] -0.9 [4] -0.45 [4] s v nl noise margin at the low level for each connected device (including hysteresis) 0.1v dd -0.1v dd -0.1v dd -v v nh noise margin at the high level for each connected device (including hysteresis) 0.2v dd -0.2v dd -0.2v dd -v
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 49 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual [5] a fast-mode i 2 c-bus device can be used in a standard-mode i 2 c-bus system, but the requirement t su;dat 250 ns must then be met. this will automatically be the case if the device does not stretch the low period of the scl signal. if such a device does stretch the low period of the scl signal, it must output the next data bit to the sda line t r(max) +t su;dat = 1000 + 250 = 1250 ns (according to the standard-mode i 2 c-bus specification) before the scl line is releas ed. also the acknowledge timing must meet this set-up time. [6] if mixed with hs-mode devices, faster fall times according to table 10 are allowed. [7] the maximum t f for the sda and scl bus lines is specified at 300 ns. the maximum fall time for the sda output stage t f is specified at 250 ns. this allows series protection resistors to be connected in between the sda and the scl pins and t he sda/scl bus lines without e xceeding the maximum specified t f . [8] in fast-mode plus, fall time is specified the same for bot h output stage and bus timing. if se ries resistors are used, desig ners should allow for this when considering bus timing. [9] necessary to be backwards compatible to fast-mode. [10] the maximum bus capacitance allowabl e may vary from this value depending on the actual operating voltage and frequency of t he application. section 7.2 discusses techniques for coping with higher bus capacitances. [11] t vd;dat = time for data signal from scl low to sda out put (high or low, depending on which one is worse). [12] t vd;ack = time for acknowledgement signal from scl low to sd a output (high or low, depending on which one is worse).
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 50 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 6.2 hs-mode devices the i/o levels, i/o current, spike suppression , output slope control a nd pin capacitance for i 2 c-bus hs-mode devices are given in ta b l e 11 . the noise margin for high and low levels on the bus lines are the same as specified for f/s-mode i 2 c-bus devices. figure 39 shows all timing parame ters for the hs-mode timing. the ?normal? start condition s does not exist in hs-mode. timing parameters for address bits, r/w bit, acknowledge bit and data bits are all the sa me. only the rising edge of the first sclh clock signal after an acknowledge bit has a larger value because the external r p has to pull up sclh without the help of the internal current-source. the hs-mode timing parameters for the bus lines are specified in table 12 . the minimum high and low periods and the maximum rise and fall times of the sclh clock signal determine the highest bit rate. with an internally generated sclh signal with low and high level periods of 200 ns and 100 ns respectively, an hs-mode master fulfills the timing requirements for the external sclh clock pulses (taking the rise and fall time s into account) for the maximum bit rate of 3.4 mbit/s. so a basic frequency of 10 mhz, or a multiple of 10 mhz, can be used by an hs-mode master to generate the sclh signal . there are no limits for maximum high and low periods of the sclh clock, and there is no limit for a lowest bit rate. timing parameters are independent for capacitive load up to 100 pf for each bus line allowing the maximum possible bi t rate of 3.4 mbit/s. at a higher capacitive load on the bus lines, the bit rate decreases gradually. the timing parameters for a capacitive bus load of 400 pf are specified in ta b l e 1 2 , allowing a maximum bit rate of 1.7 mbit/s. for v il =0.3v dd v ih =0.7v dd fig 38. definition of timing for f/s-mode devices on the i 2 c-bus 002aac938 t f 70 % 30 % sda t f 70 % 30 % s t r 70 % 30 % 70 % 30 % t hd;dat scl 1 / f scl 1 st clock cycle 70 % 30 % 70 % 30 % t r t vd;dat cont. cont. sda scl t su;sta t hd;sta sr t sp t su;sto t buf p s t high 9 th clock t hd;sta t low 70 % 30 % t vd;ack 9 th clock t su;dat
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 51 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual capacitive bus loads between 100 pf and 400 pf, the timing parameters must be interpolated linearly. rise and fall times are in accordance with the maximum propagation time of the transmission lines sdah and sc lh to prevent reflections of the open ends. [1] devices that use non-standard supply voltages which do not conform to the intended i 2 c-bus system levels must relate their input levels to the v dd voltage to which the pull-up resistors r p are connected. [2] devices that offer the level shift function must to lerate a maximum input voltage of 5.5 v at sda and scl. [3] for capacitive bus loads between 100 pf and 400 pf, the rise and fall time values must be linearly interpolated. [4] if their supply voltage has been switched off, sdah and sclh i/o stages of hs-mode slave devic es must have floating outputs. due to the current-source output circuit, which normally has a clipping diode to v dd , this requirement is not mandatory for the sclh or the sdah i/o stage of hs-mode master devices. this means that the supply voltage of hs-mode master devices cannot be switched off without affecting the sdah and sclh lines. [5] special purpose devices such as multiplexers and switches ma y exceed this capacitance because they connect multiple paths to gether. table 11. characteristics of the sdah, sclh, sda and scl i/o stages for hs-mode i 2 c-bus devices symbol parameter conditions hs-mode unit min max v il low-level input voltage ? 0.5 0.3v dd [1] v v ih high-level input voltage 0.7v dd [1] v dd +0.5 [2] v v hys hysteresis of schmitt trigger inputs 0.1v dd [1] -v v ol low-level output voltage (open-dra in) at 3 ma sink current at sdah, sda and sclh v dd >2v 0 0.4 v v dd 2v 0 0.2v dd v r onl transfer gate on resistance for currents between sda and sdah, or scl and sclh v ol level; i ol =3ma - 50 r onh [2] transfer gate on resistance between sda and sdah, or scl and sclh both signals (sda and sdah, or scl and sclh) at v dd level 50 - k i cs pull-up current of the sclh current-source sclh output levels between 0.3v dd and 0.7v dd 312ma t rcl rise time of sclh signal output rise time (current-source enabled) with an external pull-up current source of 3ma capacitive load from 10 pf to 100 pf 10 40 ns capacitive load of 400 pf [3] 20 80 ns t fcl fall time of sclh signal output fall time (current-source enabled) with an external pull-up current source of 3ma capacitive load from 10 pf to 100 pf 10 40 ns capacitive load of 400 pf [3] 20 80 ns t fda fall time of sdah signal capacitive load from 10 pf to 100 pf 10 80 ns capacitive load of 400 pf [3] 20 160 ns t sp pulse width of spikes that must be suppressed by the input filter sdah and sclh 0 10 ns i i [4] input current each i/o pin input voltage between 0.1v dd and 0.9v dd -10 a c i capacitance for each i/o pin [5] -10pf
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 52 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual [1] all values referred to v ih(min) and v il(max) levels (see table 11 ). [2] for bus line loads c b between 100 pf and 400 pf the timing parameters must be linearly interpolated. [3] a device must internally provide a data hold time to bridge the undefined part between v ih and v il of the falling edge of the sclh signal. an input circuit with a threshold as lo w as possible for the falling edge of the sclh signal minimizes this hold time. table 12. characteristics of the sdah, sclh, sda and scl bus lines for hs-mode i 2 c-bus devices [1] symbol parameter conditions c b = 100 pf (max) c b = 400 pf [2] unit min max min max f sclh sclh clock frequency 0 3.4 0 1.7 mhz t su;sta set-up time for a repeated start condition 160 - 160 - ns t hd;sta hold time (repeated) start condition 160 - 160 - ns t low low period of the scl clock 160 - 320 - ns t high high period of the scl clock 60 - 120 - ns t su;dat data set-up time 10 - 10 - ns t hd;dat data hold time 0 [3] 70 0 [3] 150 ns t rcl rise time of sclh signal 10 40 20 80 ns t rcl1 rise time of sclh signal after a repeated start condition and after an acknowledge bit 10 80 20 160 ns t fcl fall time of sclh signal 10 40 20 80 ns t rda rise time of sdah signal 10 80 20 160 ns t fda fall time of sdah signal 10 80 20 160 ns t su;sto set-up time for stop condition 160 - 160 - ns c b [2] capacitive load for each bus line sdah and sclh lines - 100 - 400 pf sdah + sda line and sclh + scl line - 400 - 400 pf v nl noise margin at the low level for each connected device (including hysteresis) 0.1v dd -0.1v dd -v v nh noise margin at the high level for each connected device (including hysteresis) 0.2v dd -0.2v dd -v
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 53 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 6.3 ultra fast-mode devices the i/o levels, i/o current, spike suppression, output slope control and pin capacitance are given in ta b l e 1 3 . the ufm i 2 c-bus timing characteristics are given in table 14 . figure 40 shows the timing definitions for the i 2 c-bus. the minimum high and low periods of the scl clock specified in ta b l e 1 4 determine the maximum bit transfer rates of 5000 kbit/s for ultra fast-mode. devices must be able to follow transfers at their own maximum bit rates, either by being able to transmit or receive at that speed. [1] refer to component data sheets for actual switching points. [2] maximum v ih = v dd(max) + 0.5 v or 5.5 v, whichever is lower. see component data sheets. [3] input filters on the usda and uscl inputs suppress noise spikes of less than 10 ns. (1) first rising edge of the sclh signal after sr and after each acknowledge bit. fig 39. definition of timing for hs-mode devices on the i 2 c-bus 002aag825 sdah sr sr p sclh = mcs current source pull-up = rp resistor pull-up t fda t rda t hd;sta t su;dat t rcl t low t high t hd;dat t low t high t rcl1 t fcl t su;sto t rcl1 (1) (1) t su;sta 0.7 v dd 0.3 v dd 0.7 v dd 0.3 v dd table 13. characteristics of the usda and uscl i/o stages n/a = not applicable. symbol parameter conditions ultra fast-mode unit min max v il low-level input voltage [1] ? 0.5 +0.3v dd v v ih high-level input voltage [1] 0.7v dd [1] - [2] v v hys hysteresis of schmitt trigger inputs 0.05v dd -v v ol low-level output voltage at 4 ma sink current; v dd >2v 0 0.4 v v oh high-level output voltage at 4 ma source current; v dd >2v v dd ? 0.4 - v i l leakage current v dd =3.6v ? 1+1 a v dd =5.5v ? 10 +10 a c i input capacitance [4] -10pf t sp pulse width of spikes that must be suppressed by the input filter [5] -10ns
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 54 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual [4] special purpose devices such as multiplexers and switches ma y exceed this capacitance because they connect multiple paths to gether. [5] input filters on the usda and uscl slave inpu ts suppress noise spikes of less than 10 ns. [1] t vd;dat = minimum time for usda data out to be valid following uscl low. [2] typical rise time or fall time for uf m signals is 25 ns measured from the 30 % level to the 70 % level (rise time) or from the 70 % level to the 30 % level (fall time). table 14. ufm i 2 c-bus frequency and timing specifications symbol parameter conditions ultra fast-mode unit min max f uscl uscl clock frequency 0 5000 khz t buf bus free time between a stop and start condition 80 - ns t hd;sta hold time (repeated) start condition 50 - ns t su;sta set-up time for a repeated start condition 50 - ns t su;sto set-up time for stop condition 50 - ns t hd;dat data hold time 10 - ns t vd;dat data valid time [1] 10 - ns t su;dat data set-up time 30 - ns t low low period of the uscl clock 50 - ns t high high period of the uscl clock 50 - ns t f fall time of both usda and uscl signals - [2] 50 ns t r rise time of both usda and uscl signals - [2] 50 ns fig 40. definition of timing for ultra fast-mode devices on the i 2 c-bus 002aag826 t f 70 % 30 % usda t f 70 % 30 % s t r 70 % 30 % 70 % 30 % t hd;dat uscl 1 / f uscl 1st clock cycle 70 % 30 % 70 % 30 % t r t vd;dat cont. cont. usda uscl t su;sta t hd;sta sr t sp t su;sto t buf p s t high 9th clock t hd;sta t low 70 % 30 % t vd;ack 9th clock t su;dat
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 55 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 7. electrical connections of i 2 c-bus devices to the bus lines 7.1 pull-up resistor sizing the bus capacitance is the total capacita nce of wire, connections and pins. this capacitance limits the maximum value of r p due to the specified rise time. figure 41 shows r p(max) as a function of bus capacitance. consider the v dd related input threshold of v ih =0.7v dd and v il =0.3v dd for the purposes of rc time constant calculation. then v(t) = v dd (1 ? e ? t/rc ), where t is the time since the charging started and rc is the time constant. v(t1) = 0.3 v dd =v dd (1 ? e ? t1 / rc ); then t1 = 0.3566749 rc v(t2) = 0.7 v dd =v dd (1 ? e ? t2 / rc ); then t2 = 1.2039729 rc t=t2 ? t1 = 0.8473 rc figure 41 and equation 1 shows maximum r p as a function of bus capacitance for standard-, fast- and fast-mode plus. for each mode, the r p(max) is a function of the rise time maximum (t r ) from ta b l e 1 0 and the estimated bus capacitance (c b ): (1) the supply voltage limits the minimum value of resistor r p due to the specified minimum sink current of 3 ma for standard-mode an d fast-mode, or 20 ma for fast-mode plus. r p(min) as a function of v dd is shown in figure 42 . the traces are calculated using equation 2 : (2) r pmax () t r 0.8473 c b ---------------------------- - = (1) standard-mode (2) fast-mode (3) fast-mode plus (1) fast-mode and standard-mode (2) fast-mode plus fig 41. r p(max) as a function of bus capacitance fig 42. r p(min) as a function of v dd 002aac883 c b (pf) 0 600 400 200 8 12 4 16 20 r p(max) (k) 0 (1) (2) (3) 0 3 2 1 4 r p(min) (k) v dd (v) 020 15 510 002aac884 (1) (2) r pmin () v dd v ol max () ? i ol -------------------------------------- =
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 56 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual the designer now has the minimum and maximum value of r p that is required to meet the timing specification. portable designs with sensitivity to supply current consumption can use a value toward the higher end of the range in order to limit i dd . 7.2 operating above the maximu m allowable bus capacitance bus capacitance limit is specifie d to limit rise time reductions and allow operating at the rated frequency. while most designs can easily stay within this limit, some applications may exceed it. there are several strategies available to system designers to cope with excess bus capacitance. ? reduced f scl ( section 7.2.1 ): the bus may be operated at a lower speed (lower f scl ). ? higher drive outputs ( section 7.2.2 ): devices with higher drive current such as those rated for fast-mode plus can be used (pca96xx). ? bus buffers ( section 7.2.3 ): there are a number of bus buffer devices available that can divide the bus into segments so that each segment has a capacitance below the allowable limit, such as the pca9517 bus buffer or the pca9546a switch. ? switched pull-up circuit ( section 7.2.4 ): a switched pull-up circuit can be used to accelerate rising edges by switching a low value pull-up alternately in and out when needed. 7.2.1 reduced f scl to determine a lower allowable bus operating frequency, begin by finding the t low and t high of the most limiting device on the bus. refer to individual component data sheets for these values. actual rise time (t r ) depends on the rc time constant. the most limiting fall time (t f ) depends on the lowest output drive on th e bus. be sure to allow for any devices that have a minimum t r or t f . refer to equation 3 for the resulting f max . (3) remark: very long buses must also accoun t for time of flight of signals. actual results are slower, as real parts do not tend to control t low and t high to the minimum from 30 % to 30 %, or 70 % to 70 %, respectively. 7.2.2 higher drive outputs if higher drive devices like the pca96xx fast -mode plus or the p82b bus buffers are used, the higher strength output drivers sink more current which results in considerably faster edge rates, or, looked at another way, allows a higher bus capacitance. refer to individual component data sheets for actual outp ut drive capability. repeat the calculation above using the new values of c b , r p , t r and t f to determine maximum frequency. bear in mind that the maximum rating for f scl as specified in table 10 (100 khz, 400 khz and 1000 khz) may become limiting. 7.2.3 bus buffers, multiplexers and switches another approach to coping wit h excess bus capacitance is to divide the bus into smaller segments using bus buffers, multiplexers or switches. figure 43 shows an example of a bus that uses a pca9515 buffer to deal with high bus capacitance. each segment is then allowed to have the maximum capacitance so the total bus can have twice the maximum f max 1 t low min () t high min () t r actual () t f actual () +++ ------------------------------------------------------------------------------------------------------------ - =
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 57 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual capacitance. keep in mind that adding a buffer always adds delays ? a buffer delay plus an additional transition time to each edge, which reduces the maximum operating frequency and may also introduce special v il and v ol considerations. refer to application notes an255, i 2 c / smbus repeaters, hubs and expanders and an262, pca954x family of i 2 c / smbus multiplexers and switches for more details on this subject and the devices available from nxp semiconductors. 7.2.4 switched pull-up circuit the supply voltage (v dd ) and the maximum output low level determine the minimum value of pull-up resistor r p (see section 7.1 ). for example, with a supply voltage of v dd =5v 10 % and v ol(max) = 0.4 v at 3 ma, r p(min) =(5.5 ? 0.4) / 0.003 = 1.7 k . as shown in figure 42 , this value of r p limits the maximum bus capacitance to about 200 pf to meet the maximum t r requirement of 300 ns. if the bus has a higher capacitance than this, a switched pull-up circuit (as shown in figure 44 ) can be used. remark: some buffers allow v dd1 and v dd2 to be different levels. fig 43. using a buffer to divide bus capacitance buffer 002aac882 v dd1 sda scl slaves and masters 400 pf slaves and masters 400 pf v dd2 fig 44. switched pull-up circuit mbc620 1.3 k 1/4 hct4066 nz gnd ne ny 5v 10 % r p2 1.7 k
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 58 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual the switched pull-up circuit in figure 44 is for a supply voltage of v dd =5v 10 % and a maximum capacitive load of 400 pf. since it is controlled by the bus levels, it needs no additional switching control sign als. during the risi ng/falling edges, the b ilateral switch in the hct4066 switches pull-up resistor r p2 on/off at bus levels between 0.8 v and 2.0 v. combined resistors r p1 and r p2 can pull up the bus line within the maximum specified rise time (t r ) of 300 ns. series resistors r s are optional. they protect the i/o stages of the i 2 c-bus devices from high-voltage spikes on the bus lines, and mini mize crosstalk and undershoot of the bus line signals. the maximum value of r s is determined by the maximum permitted voltage drop across this resistor when the bus line is s witched to the low leve l in order to switch off r p2 . additionally, some bus buffers contain integral rise time accelerators. stand-alone rise time accelerators are also available. 7.3 series protection resistors as shown in figure 45 , series resistors (r s ) of, for example, 300 can be used for protection against high-voltage spikes on the sda and scl lines (resulting from the flash-over of a tv picture tube, for example). if series resistors are used, designers must add the additional resistance into their calculations for r p and allowable bus capacitance. the required noise margin of 0.1v dd for the low level, limit s the maximum value of r s . r s(max) as a function of r p is shown in figure 46 . note that series resistors affect the output fall time. fig 45. series resistors (r s ) for protection against high-voltage spikes mbc627 sda scl device v dd v dd i 2 c r s r s r s r s r p r p device i 2 c
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 59 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 7.4 input leakage the maximum high level input current of eac h input/output connection has a specified maximum value of 10 a. due to the required noise margin of 0.2v dd for the high level, this input current limits the maximum value of r p . this limit depends on v dd . the total high-level input current is shown as a function of r p(max) in figure 47 . fig 46. maximum value of r s as a function of the value of r p with supply voltage as a parameter 0 400 800 1600 10 0 8 mbc629 1200 6 4 2 maximum value r s () 15 v 10 v r p (k) v dd = 2.5 v 5 v fig 47. total high-level input current as a function of the maximum value of r p with supply voltage as a parameter 0 200 20 0 4 mbc630 8 12 16 40 80 120 160 total high level input current ( a) maximum value r p (k ) 5 v v dd = 15 v 2.5 v 10 v
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 60 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 7.5 wiring pattern of the bus lines in general, the wiring must be chosen so that crosstalk and interfer ence to/from the bus lines is minimized. the bus lines are most susce ptible to crosstalk and interference at the high level because of the relatively high impedance of the pull-up devices. if the length of the bus lines on a pcb or ribbon cable exceeds 10 cm and includes the v dd and v ss lines, the wiring pattern should be: sda _______________________ v dd ________________________ v ss ________________________ scl _______________________ if only the v ss line is included, the wiring pattern should be: sda _______________________ v ss ________________________ scl _______________________ these wiring patterns also result in identica l capacitive loads for the sda and scl lines. if a pcb with a v ss and/or v dd layer is used, the v ss and v dd lines can be omitted. if the bus lines are twisted-pairs, eac h bus line must be twisted with a v ss return. alternatively, the scl lin e can be twisted with a v ss return, and the sda line twisted with a v dd return. in the latter ca se, capacitors must be used to decouple the v dd line to the v ss line at both ends of the twisted pairs. if the bus lines are shielded (shield connected to v ss ), interference is minimized. however, the shielded cable must have lo w capacitive coupling between the sda and scl lines to minimize crosstalk.
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 61 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 8. abbreviations table 15. abbreviations acronym description a/d analog-to-digital atca advanced telecom computing architecture bmc baseboard management controller cmos complementary metal-oxide semiconductor cpci compact peripheral component interconnect d/a digital-to-analog dip dual in-line package eeprom electrically erasable pr ogrammable re ad only memory hw hardware i/o input/output i 2 c-bus inter-integrated circuit bus ic integrated circuit ipmi intelligent platform management interface lcd liquid crystal display led light emitting diode lsb least significant bit mcu microcontroller msb most significant bit nmos negative-channel metal-oxide semiconductor pcb printed-circuit board pci peripheral component interconnect pmbus power management bus ram random access memory rom read-only memory smbus system management bus spi serial peripheral interface uart universal asynchronous receiver/transmitter usb universal serial bus
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 62 of 64 nxp semiconductors UM10204 i 2 c-bus specification and user manual 9. legal information 9.1 definitions draft ? the document is a draft versi on only. the content is still under internal review and subject to formal approval, which may result in modifications or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall hav e no liability for the consequences of use of such information. 9.2 disclaimers limited warranty and liability ? information in this document is believed to be accurate and reliable. however, nxp semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such info rmation. nxp semiconductors takes no responsibility for the content in this document if provided by an information source outside of nxp semiconductors. in no event shall nxp semiconductors be liable for any indirect, incidental, punitive, special or consequential damages (including - without limitation - lost profits, lost savings, business interruption, costs related to the removal or replacement of any products or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of contract or any other legal theory. notwithstanding any damages that customer might incur for any reason whatsoever, nxp semiconductors? aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the terms and conditions of commercial sale of nxp semiconductors. right to make changes ? nxp semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use ? nxp semiconductors products are not designed, authorized or warranted to be suitable for use in life support, life-critical or safety-critical systems or equipment, nor in applications where failure or malfunction of an nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors and its suppliers accept no liability for inclusion and/or use of nxp semiconducto rs products in such equipment or applications and therefore such inclusion and/or use is at the customer?s own risk. applications ? applications that are described herein for any of these products are for illustrative purpos es only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. customers are responsible for the design and operation of their applications and products using nxp semiconductors products, and nxp semiconductors accepts no liability for any assistance with applications or customer product design. it is customer?s sole responsibility to determine whether the nxp semiconductors product is suitable and fit for the customer?s applications and products planned, as well as fo r the planned application and use of customer?s third party customer(s). customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products. nxp semiconductors does not accept any liability related to any default, damage, costs or problem which is based on any weakness or default in the customer?s applications or products, or the application or use by customer?s third party customer(s). customer is responsible for doing all necessary testing for the customer?s applic ations and products using nxp semiconductors products in order to av oid a default of the applications and the products or of the application or use by customer?s third party customer(s). nxp does not accept any liability in this respect. export control ? this document as well as the item(s) described herein may be subject to export control regulations. export might require a prior authorization from competent authorities. translations ? a non-english (translated) version of a document is for reference only. the english version shall prevail in case of any discrepancy between the translated and english versions. 9.3 trademarks notice: all referenced brands, produc t names, service names and trademarks are the property of their respective owners. i 2 c-bus ? logo is a trademark of nxp b.v.
UM10204 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012. all rights reserved. user manual rev. 4 ? 13 february 2012 63 of 64 continued >> nxp semiconductors UM10204 i 2 c-bus specification and user manual 10. contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2 i 2 c-bus features . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.1 designer benefits . . . . . . . . . . . . . . . . . . . . . . . 4 2.2 manufacturer benefits . . . . . . . . . . . . . . . . . . . . 5 2.3 ic designer benefits . . . . . . . . . . . . . . . . . . . . . 6 3 the i 2 c-bus protocol . . . . . . . . . . . . . . . . . . . . . 6 3.1 standard-mode, fast-mode and fast-mode plus i 2 c-bus protocols . . . . . . . . . . 6 3.1.1 sda and scl signals . . . . . . . . . . . . . . . . . . . . 8 3.1.2 sda and scl logic levels. . . . . . . . . . . . . . . . . 9 3.1.3 data validity . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.1.4 start and stop conditions . . . . . . . . . . . . . . 9 3.1.5 byte format . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1.6 acknowledge (ack) and not acknowledge (nack) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1.7 clock synchronization. . . . . . . . . . . . . . . . . . . 11 3.1.8 arbitration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.1.9 clock stretching . . . . . . . . . . . . . . . . . . . . . . . 13 3.1.10 the slave address and r/w bit . . . . . . . . . . . 13 3.1.11 10-bit addressing . . . . . . . . . . . . . . . . . . . . . . 15 3.1.12 reserved addresses. . . . . . . . . . . . . . . . . . . . 17 3.1.13 general call address. . . . . . . . . . . . . . . . . . . . 17 3.1.14 software reset. . . . . . . . . . . . . . . . . . . . . . . . . 19 3.1.15 start byte . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.1.16 bus clear. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.1.17 device id . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.2 ultra fast-mode i 2 c-bus protocol . . . . . . . . . . 23 3.2.1 usda and uscl signals . . . . . . . . . . . . . . . . 25 3.2.2 usda and uscl logic levels . . . . . . . . . . . . . 25 3.2.3 data validity . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3.2.4 start and stop conditions . . . . . . . . . . . . . 25 3.2.5 byte format . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.2.6 acknowledge (ack) and not acknowledge (nack) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.2.7 the slave address and r/w bit . . . . . . . . . . . 27 3.2.8 10-bit addressing . . . . . . . . . . . . . . . . . . . . . . 28 3.2.9 reserved addresses in ufm . . . . . . . . . . . . . 29 3.2.10 general call address. . . . . . . . . . . . . . . . . . . . 30 3.2.11 software reset. . . . . . . . . . . . . . . . . . . . . . . . . 30 3.2.12 start byte . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.2.13 unresponsive slave reset . . . . . . . . . . . . . . . . 31 3.2.14 device id . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 4 other uses of the i 2 c-bus communications protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.1 cbus compatibility . . . . . . . . . . . . . . . . . . . . . 32 4.2 smbus - system management bus . . . . . . . . 32 4.2.1 i 2 c/smbus compliancy . . . . . . . . . . . . . . . . . . 32 4.2.2 time-out feature. . . . . . . . . . . . . . . . . . . . . . . 33 4.2.3 differences between smbus 1.0 and smbus 2.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 4.3 pmbus - power management bus. . . . . . . . . 34 4.4 intelligent platform management interface (ipmi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 4.5 advanced telecom computing architecture (atca) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 4.6 display data channel (ddc) . . . . . . . . . . . . . 35 5 bus speeds . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 5.1 fast-mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.2 fast-mode plus . . . . . . . . . . . . . . . . . . . . . . . 36 5.3 hs-mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 5.3.1 high speed transfer . . . . . . . . . . . . . . . . . . . . 37 5.3.2 serial data format in hs-mode . . . . . . . . . . . . 38 5.3.3 switching from f/s-mode to hs-mode and back . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 5.3.4 hs-mode devices at lower speed modes . . . . 41 5.3.5 mixed speed modes on one serial bus system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 5.3.6 standard, fast-mode and fast-mode plus transfer in a mixed-speed bus system . . . . . . 44 5.3.7 hs-mode transfer in a mixed-speed bus system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 5.3.8 timing requirements for the bridge in a mixed-speed bus system . . . . . . . . . . . . . . . . 45 5.4 ultra fast-mode . . . . . . . . . . . . . . . . . . . . . . . 46 6 electrical specificati ons and timing for i/o stages and bus lines . . . . . . . . . . . . . . . . . 46 6.1 standard-, fast-, and fast-mode plus devices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 6.2 hs-mode devices . . . . . . . . . . . . . . . . . . . . . . 50 6.3 ultra fast-mode devices . . . . . . . . . . . . . . . . 53 7 electrical connections of i 2 c-bus devices to the bus lines . . . . . . . . . . . . . . . . . . . . . . . . 55 7.1 pull-up resistor sizing. . . . . . . . . . . . . . . . . . . 55 7.2 operating above the maximum allowable bus capacitance . . . . . . . . . . . . . . . . . . . . . . . 56 7.2.1 reduced f scl . . . . . . . . . . . . . . . . . . . . . . . . . 56 7.2.2 higher drive outputs. . . . . . . . . . . . . . . . . . . . 56 7.2.3 bus buffers, multiplexers and switches . . . . . 56 7.2.4 switched pull-up circuit . . . . . . . . . . . . . . . . . 57 7.3 series protection resistors . . . . . . . . . . . . . . . 58 7.4 input leakage . . . . . . . . . . . . . . . . . . . . . . . . . 59 7.5 wiring pattern of the bus lines . . . . . . . . . . . . 60 8 abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 61
nxp semiconductors UM10204 i 2 c-bus specification and user manual ? nxp b.v. 2012. all rights reserved. for more information, please visit: http://www.nxp.com for sales office addresses, please se nd an email to: salesaddresses@nxp.com date of release: 13 february 2012 document identifier: UM10204 please be aware that important notices concerning this document and the product(s) described herein, have been included in section ?legal information?. 9 legal information. . . . . . . . . . . . . . . . . . . . . . . 62 9.1 definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 9.2 disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 9.3 trademarks. . . . . . . . . . . . . . . . . . . . . . . . . . . 62 10 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63


▲Up To Search▲   

 
Price & Availability of UM10204

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X